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:
+2
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user