Sidecar files (or buddy files) are companion files that live along side the main file of interest, usually a piece of media. These are commonly hash digests (.sfv, .md5, .sha1, .sha256, etc), subtitles (.srt, .sub/.idx, .ass), or README and other metadata describing the contents of the file.
Could I get several examples of locating files that have or are missing their sidecar files? Here are some scenarios:
- Find all videos that do not have <filename-without-ext>.eng.srt
- Find all archives that do not have <filename>.<ext>.sha256
- Find all folders that contain music that do not contain at least one of Folder.jpg, AlbumArtSmall.jpg, AlbumArt.jpg, Album.jpg, .folder.png, cover.jpg or thumb.jpg
Trick to locating missing "sidecar files"?
Re: Trick to locating missing "sidecar files"?
Find all videos that do not have <filename>.eng.srt
Code: Select all
video: regex:^(.*)\.[^.]*$ !fileexists:\1.eng.srt
Find all archives that do not have <filename>.<ext>.sha256
Code: Select all
zip: regex:^(.*)$ !fileexists:\1.sha256
Find all folders that contain music that do not contain at least one of Folder.jpg, AlbumArtSmall.jpg, AlbumArt.jpg, Album.jpg, .folder.png, cover.jpg or thumb.jpg
Code: Select all
child:*.mp3|child:*.flac|child:*.ogg !<child:Folder.jpg|child:AlbumArtSmall.jpg|child:AlbumArt.jpg|child:Album.jpg|child:.folder.png|child:cover.jpg|child:thumb.jpg>
Re: Trick to locating missing "sidecar files"?
Thanks!
Somehow I missed that fileexists: accepts \1 from a prior regex. Can \1 be used anywhere now?
Somehow I missed that fileexists: accepts \1 from a prior regex. Can \1 be used anywhere now?
Re: Trick to locating missing "sidecar files"?
Anywhere with the expand: search modifier.