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>
This commit is contained in:
sm
2026-10-26 15:57:23 -07:00
co-authored by Claude Opus 5.5
parent 6d971118b7
commit f63b855179
6 changed files with 270 additions and 15 deletions
+2 -2
View File
@@ -10,14 +10,14 @@ import (
"mcquay.me/arrange"
)
func arr(indir, outdir string) error {
func arr(indir, outdir string, f arrange.Filter) error {
if !*dryRun {
if err := arrange.PrepOutput(outdir); err != nil {
return fmt.Errorf("problem creating directory structure: %v", err)
}
}
work := arrange.Source(indir)
work := arrange.SourceFiltered(indir, f)
streams := []<-chan arrange.Media{}
workers := runtime.NumCPU()