phiola icon indicating copy to clipboard operation
phiola copied to clipboard

Recursive Search

Open Ducke1001 opened this issue 1 year ago • 6 comments

If I want to get the file info of all files in a certain directory, then all files from the subdirectories are also listed. How can I prevent this? I only need the main directory.

Command: phiola.exe" info "D:\MP3\Chill Out" -inc "*.mp3"

Ducke1001 avatar Aug 04 '24 18:08 Ducke1001

In this case you should pass to phiola a wildcard, e.g.

phiola.exe info "D:\MP3\Chill Out\*.mp3"

stsaz avatar Aug 05 '24 03:08 stsaz

Yes, it works. Thank you.

How can I do this with all supported formats?

phiola.exe info "D:\MP3\Chill Out\*.*"

reads the subdirectories again. Using the Phiolas Format Detector I was able to filter out the unsupported formats. Do I have to go the long way and insert the path for all formats individually, e.g.

phiola.exe info "D:\MP3\Chill Out\*.mp3" "D:\MP3\Chill Out\*.aac" "D:\MP3\Chill Out\*.ogg" ... ?

Ducke1001 avatar Aug 05 '24 06:08 Ducke1001

phiola.exe info "D:\MP3\Chill Out\*.*" reads the subdirectories again

If a directory contains a dot then yes, it will be included in the search. To work-around that you can try using *.??, *.??? and *.???? masks, or explicitly specifying all supported file types as you already tried.

Note that on Linux there is no such problem, because one would just use find ... | xargs phiola info command for your scenario.

stsaz avatar Aug 05 '24 12:08 stsaz

Thanks for your advice. I will try it. I would also prefer to work in Linux but I can't install wxBasic under Linux Mint. It wants libraries that I can't find anywhere.

Ducke1001 avatar Aug 05 '24 16:08 Ducke1001

One of the main advantages of Linux is that the libs are open-source, and thus you can always build them manually if necessary. But if you're stuck, send me an email directly - I will try to help you.

stsaz avatar Aug 06 '24 04:08 stsaz

Thank you very much. I will try again in the next few days and get back to you.

Ducke1001 avatar Aug 06 '24 13:08 Ducke1001