stsaz / phiola

Fast audio player, recorder, converter for Windows, Linux & Android
BSD 2-Clause "Simplified" License
119 stars 7 forks source link

Recursive Search #46

Closed Ducke1001 closed 3 months ago

Ducke1001 commented 3 months ago

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"

stsaz commented 3 months ago

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

phiola.exe info "D:\MP3\Chill Out\*.mp3"
Ducke1001 commented 3 months ago

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" ... ?

stsaz commented 3 months ago

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.

Ducke1001 commented 3 months ago

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.

stsaz commented 3 months ago

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.

Ducke1001 commented 3 months ago

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