Jump to content


Photo

Scanning A Folder For Subfolders And Files


  • Please log in to reply
1 reply to this topic

#1 takua108

takua108

    GMC Member

  • GMC Member
  • 582 posts

Posted 14 May 2006 - 07:34 PM

Hi, I'm making a game that allows for custom soundtracks in addition to the ones that come packaged with the game. The files are stored externally as such:

TOPDOWN
 |-- tracks
 |   |-- topdown_ost
 |   |    |-- (all of the default tracks)
 |   |-- (a user-created subfolder)
 |   |    |-- (all of the tracks in that subfolder)
 |-- TOPDOWN.EXE
I need to read a list of all of the subfolders of the tracks directory, and then a list of all of the files in each subfolder. Could someone tell me how to do this in GML?

Thanks,
~takua108
  • 0

#2 Yourself

Yourself

    The Ultimate Pronoun

  • Retired Staff
  • 7341 posts
  • Version:Unknown

Posted 14 May 2006 - 07:52 PM

Refer to the manual about the file_find functions. They will do what you want.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users