GetDirectoryList ... unexpected results
by David Higgins · in Torque Game Builder · 03/23/2007 (8:02 pm) · 0 replies
Ok, I've given the "getDirectoryList" function a whirl around the block and it does not seem to produce the output that I'm expecting -- namely, a list of files in the directory, as the documentation states.
It does give back a list of directories, but does not ever list the contents of those directories --
What I am trying to accomplish is this:
I need a way to get back a list, or a SimSet, or whatever of all the files in a given directory -- I've tried the findFirstFile/findNextFile and getDirectoryList and both appear to not work as I'd hope ...
getDirectoryList returning a list of directories, and not files
findFirstFile/findNextFile not allowing a pattern to be more then just a filename comparison ("myGame/data/images/path/*.png" for example)
Has anyone run into this problem before? Does anyone have any work arounds? I'm OK with making mods to the engines C++, but I'd prefer a cross-platform solution (Windows/OSX).
Thanks
It does give back a list of directories, but does not ever list the contents of those directories --
What I am trying to accomplish is this:
I need a way to get back a list, or a SimSet, or whatever of all the files in a given directory -- I've tried the findFirstFile/findNextFile and getDirectoryList and both appear to not work as I'd hope ...
getDirectoryList returning a list of directories, and not files
findFirstFile/findNextFile not allowing a pattern to be more then just a filename comparison ("myGame/data/images/path/*.png" for example)
Has anyone run into this problem before? Does anyone have any work arounds? I'm OK with making mods to the engines C++, but I'd prefer a cross-platform solution (Windows/OSX).
Thanks
About the author