The constructor for a Dir object |
Declaration: |
native function Dir(string directory) |
Description: |
This function is the constructor for the Sys.Dir class. You should supply it with the name of the directory you wish to read the file names from. You may then either call the toArray() method to generate an array of filenames in one step or repeatedly call the readdir() to read the file names one at a time. To "rewind" to the beginning or to read another directory without creating a new Dir object, call constructor again and the directory stream will be closed and reopened. |
Parameters: |
Parameter #1: string directory - The path to the directory to read from |