Commit Graph
2 Commits
Author SHA1 Message Date
smandClaude Opus 5.5 6d971118b7 safer moves, verify, dry run, heic/raw and video dates
Safety:
- clean no longer deletes a dated file whose content is missing from the
  store. os.SameFile(nil, ...) returned false, so clean removed the file
  and then failed to relink it. MissingLink now reports and skips those
  files, and Relink swaps the link in with link+rename, so the path
  exists the whole time.
- Move writes the content file under a temporary name, checks it
  against the hash, fsyncs it, and links it into place. An interrupted
  run can no longer leave a truncated file that later runs treat as a
  dup.
- The crawl logs and skips unreadable paths instead of stopping, and it
  ignores AppleDouble ._ files and QNAP .@__thumb directories.

Features:
- sha256 content addresses by default; -hash=md5 adds to older stores.
- am verify rehashes the store and reports corrupt, orphaned, and stale
  temp files. It only reads.
- -n dry run for arr and clean prints the plan as TSV and changes
  nothing.
- arr ends with a summary of counts and sizes by extension and year,
  with no file names.
- heic/heif/avif, tiff, dng, cr2/cr3, nef, and arw are dated by exif via
  imagemeta, with goexif kept as the jpeg fallback. Exif times without
  an offset are read as local time, as before.
- mov/mp4/m4v/3gp are dated from the moov/mvhd creation time. mkv, mts,
  webm, and friends are now included and dated by mtime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 15:57:19 -07:00
sm 0359f8c288 added meta subcommand
this command parses and prints out the metadata. Also I've used an
alternate spelling of "go wide" that I've been finding slightly more
legible these days.
2017-07-23 14:07:12 -07:00