foosion
Jul 25 2003, 15:15
In foo_tradersfriend I'm searching for a text file (.txt) belonging to a music file. Since I don't know the exact name of the .txt file, I use directory::g_list to get the contents of dir and filter out the unwanted restults (i.e. those from the subdirectories of dir). As far as I know, there is no other way to do a nonrecursive directory listing in fb. If there is, please enlighten me. If not, directory::list could probably take an additional parameter bool recursive = true.
QUOTE (foosion @ Jul 25 2003, 05:15 PM)
If not, directory::list could probably take an additional parameter bool recursive = true.
Noted.
nameczanin
Feb 17 2009, 22:49
It's been a long time from these posts. Can someone give some note how to use that feature today?
What I completely mean is to check whether dropped "things" is a folder or files. Let's assume it is given a folder. Then, how to (non)recursive list these files AND check if they are playable? Also how to check given files whether they are playable?
nameczanin
Feb 19 2009, 19:47
There's no one response. Well, I see that I need to use some WinAPI funcs...
foosion
Feb 19 2009, 22:41
I don't have much time right now, so here's just a few hints:
- class playlist_incoming_item_filter_v2: This can be used to get a list of tracks from a list of locations or from an IDataObject.
- class filesystem: The functions that used to be in the directory service in the ancient version of foobar2000 that was current when this thread was started are now in the filesystem service.