Difference between revisions of "API:DirectoryStream"
(Create DirectoryStream constructor page)
Revision as of 04:27, 12 August 2017
The new DirectoryStream() constructor initializes an object that allows you to enumerate the contents of a directory.
dirstream_obj = new DirectoryStream(dir_name);
new DirectoryStream() constructs a Directory Stream object, which allows you to enumerate the contents of a directory. Directory streams only provide filenames; you must use a FileStream to access the contents of a file.
|dir_name||Path to the directory to be enumerated. Relative to the game manifest unless a SphereFS prefix is included.|