22 Commits
Author SHA1 Message Date
smandClaude Opus 5.5 f63b855179 choose what to arrange: -kinds, -exclude, am survey
-kinds picks any of image, raw, video (default all). -exclude skips
files and whole directories by name glob, and can be repeated. am
survey stats media per directory (counts by kind, videos over 1G,
sizes) so things like ripped DVDs stand out before arranging. It
never opens files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 15:57:23 -07:00
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
smandClaude Opus 5.5 dd1dd9d583 go modules, drop govendor, fix tests
The tests still called _parse, which was renamed to ParseFile in
13cd30b, so they no longer compiled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 15:57:10 -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
sm 13cd30b46c expose the ParseFile function. 2017-07-23 14:06:28 -07:00
sm b4ee62151d vendor exif 2016-11-28 22:28:05 -08:00
sm 1abff34b3d add missing link cleanup subcommand. 2016-07-09 21:40:14 -07:00
sm ceb4206787 add subcommands, make way for clean 2016-07-09 15:06:51 -07:00
sm c2c01c46f1 update mtime on files as we write them. 2016-05-22 09:55:08 -07:00
sm 53b1be748a golint and go vet 2016-05-19 21:29:17 -07:00
sm 284a478a2f add support for avi 2016-05-19 21:22:26 -07:00
sm 035375996e added tests 2016-05-18 23:31:53 -07:00
sm 57d3e5fa1f added primative support for png, gif others. 2016-05-18 21:11:18 -07:00
sm 126a948fd4 fixed bug if input dir doesn't exist. 2016-05-18 21:04:38 -07:00
sm a37d88f99f cores flag, move supported extensions 2016-05-18 00:20:30 -07:00
sm 598a574685 refactor 2016-05-17 23:03:37 -07:00
sm 356775342b more useful log flags 2016-05-17 22:53:41 -07:00
sm cc21ef3101 use mtime if exif data not present. 2016-05-17 22:53:27 -07:00
sm a468db2585 deal with bad exif 2016-05-17 19:38:08 -07:00
sm 2bb3b1a318 arranging jpegs mostly right. 2016-05-17 01:18:53 -07:00
sm ed0cd04250 added license 2016-05-17 01:18:38 -07:00
sm c447240cbf init
parses and logs exif info.
2016-05-15 22:54:06 -07:00