Getting a directory listing and storing in a listbox - Delphi
I need to figure out how to return a list of directories available under a specific path.
C:\JukeBox\Music\ (starting directory)
under this directory are directories of artists (ex. \Metallica\)
under the artist directory are directories of albums (ex. \Ride The Lightning\)
What I'm looking to do is grab a list of these directories somehow and store them in a listbox to iterate through them as needed.
Example of intended listbox contents:
C:\JukeBox\Music\Metallica\Ride The Lightning\
C:\JukeBox\Music\Megadeth\Rust In Peace\
The app currently uses a findfile function which recursively searches for .mp3 files and it grabs the filepath from the mp3. This is not very efficient and will really bog down once the mp3 collection gets larger.