I have another syntax question similiar to the above, but not the same. In this case I'm initially looking for all folders which have ini OR dbits files. They don't have to have "both" types since I'm looking for stray thumbnail ini files as well as stray dbits file (one type missing its mate).
So, I first get those folders and yes, in the case of ini files, there could be quite a few that have nothing to do with thumbnails. The situation is "Resolve cache path from current" checked in thumbnail Configuration so thumbnail caches will be located in any folder containing thumb-able image type files. After obtaining $folders, I narrow it down to only ini files containing the word "SizeDbits" which is something specific to thumbnail ini's and also get the list of dbits files. I'm having trouble with the syntax on combining that search for $data in one quicksearch. :
Code: Select all
elseif($CacheDir == "") {
$paths = $sel_drive . <crlf> . quicksearch("/d /a", $sel_drive); //works
$folders = quicksearch("prop:#contains.*.ini:1 OR prop:#contains.*.dbits:1 /n /a", $paths); //works
$data =quicksearch("*.ini /contents=SizeDbits", $folders) . <crlf> . quicksearch("*.dbits", $folders); //works
The above dual quicksearch for $data works and I can use it, but I've tried literally a dozen different ways in attempt to use a single quicksearch with no luck. Quicksearch syntax and me don't get along. Any help would be appreciated. Thanks.
Code: Select all
$data3 = quicksearch("* /types=ini;dbits AND /contents=SizeDbits", $folders); //doesn't work
$data2 = quicksearch("*.dbits OR /types=ini /contents=SizeDbits", $folders); //doesn't work
$data7 = quicksearch("*.ini;*.dbits OR /contents=SizeDbits", $folders); //doesn't work
$data5 = quicksearch("* /types=dbits OR *.ini /contents=SizeDbits", $folders); //doesn't work