{ source, target ->
source.dir.listFiles{ f ->
// select Special Features and move them to a Featurettes subfolder (e.g. Jaws-SF_04_DS_Outtakes_t03.mkv)
if (f.video && f.name.findWordMatch(/SF/)) {
// move, copy, symlink, hardlink, etc
action(f, target.dir / 'Featurettes' / f.name)
}
}
}
This sample code is work in progress. Please share sample file names for your featurettes, extras, trailers, etc and how you would like to organise them, so that we can add more rules to the sample code above and make things work better out-of-the-box for everyone.
Great initiative! I love the idea of automatically centralizing bonus features and short films. My files consist of trailers (Trailer_01.mkv, Trailer_02.mkv) and making-of videos (BehindTheScenes_01.mkv). I'd like them to be automatically sorted into 'Trailers' and 'MakingOf' subfolders; that would make the script even more convenient. Mini MilitiaApp Lock