Help - Search - Members - Calendar
Full Version: nonrecursive directory listing
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
foosion
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.
Peter
QUOTE (foosion @ Jul 25 2003, 05:15 PM)
If not, directory::list could probably take an additional parameter bool recursive = true.

Noted.
nameczanin
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
There's no one response. Well, I see that I need to use some WinAPI funcs...
foosion
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.



This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.