Returns a list of file names in dir. If extension is provided, restricts the results to only include files with that extension.
The precise behavior of this function are defined by the host operating system and file system. In particular, certain common directory shorthand, such as ".." can be used in dir.
directoryList ( dir As String, _ Optional extension As String = "*" ) As List
Argument | Type | Description |
---|---|---|
dir | String | The path to the directory to be listed. |
extension | String | Optional; selects for inclusion in the result only those files which have the given extension (including wildcards); default is "*" |