Page 1 of 1

Searching for Folders without a specific File

Posted: 24 Aug 2025 21:28
by Native2904
Hi,

as a new and happy Lifetime Pro License owner, I want to learn more about working with XY.
I have a NAS folder containing many (256) movies, and in some folders there is, besides the movie.mkv file, also a picture file named "cover".
Now I want to find all folders that do not contain this cover file.
I tried it with F3 and with Ctrl+F, but in both cases I only find the cover* files, not the folders without them.

My scripting skills are very bad limited, and I asked ChatGPT — but the script it suggested doesn’t seem to work.

Code: Select all

// Alle Unterordner ohne cover*.* auflisten
  $list = "";
  foreach($folder, <getfolders <curpath>>, , "r") {
    if (exists("$folder\cover*") == 0) {
      $list = "$list$folder|";
    }
  }
  text $list;
Would anyone like to show me a way so that I have a list at the end with which I can organize the missing files?

Re: Searching for Folders without a specific File

Posted: 24 Aug 2025 22:29
by highend
Show the Info panel (normally F12) and in the Name & Location tab you'll enter
cover /x
in the Name: field

Re: Searching for Folders without a specific File

Posted: 25 Aug 2025 00:09
by bossi
i assume you want to mark them ?
tagitems("label", "yourlabel" , $list , );
tagitems("tags", "yourtag" , $list , );

Re: Searching for Folders without a specific File

Posted: 25 Aug 2025 19:58
by Native2904
i just wanted to say thank you!

Re: Searching for Folders without a specific File

Posted: 26 Aug 2025 17:26
by Native2904
I did this search with the search pattern " /x " and found that many folders were found that contained the exclusion criterion...
What is my problem, or is this a minor bug?


I will delete this GIF after a while

Re: Searching for Folders without a specific File

Posted: 26 Aug 2025 18:07
by admin
"Umkehren" nicht checken. /x macht ja schon "ohne".