W
whale_cancer
Guest
I am having issues getting file_find_first to work properly. What I am trying to do is get a list of all folders in a directory; said directory holds folders which contain files related to map information (i.e. each folder contains everything a map needs to load).
However, I cannot even get it to find the first file! Argh, file handling was so much easier in GM8.
Anyway, here is the code I am using to find the first file, I am sure this is just some stupid little thing I am doing wrong:
Right now, it only ever returns a blank string as tS. The Maps directory exists (it is created by my save function elsewhere) and contains three folders: 'default', 'default2', and 'default3'
Any help appreciated.
However, I cannot even get it to find the first file! Argh, file handling was so much easier in GM8.
Anyway, here is the code I am using to find the first file, I am sure this is just some stupid little thing I am doing wrong:
Code:
tS = file_find_first('\Maps\*', fa_directory);
show_message(tS + ' loaded');
Any help appreciated.