Trick to locating missing "sidecar files"?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Trick to locating missing "sidecar files"?

Post by raccoon »

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
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: Trick to locating missing "sidecar files"?

Post by void »

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>
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Trick to locating missing "sidecar files"?

Post by raccoon »

Thanks!

Somehow I missed that fileexists: accepts \1 from a prior regex. Can \1 be used anywhere now?
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: Trick to locating missing "sidecar files"?

Post by void »

Anywhere with the expand: search modifier.
Post Reply