directory class : GetFiles() method
Description
Gets a list of files that are direct child.
Syntax
directoryInstance.GetFiles()
Arguments
None
Return value
Class | Description |
list{file} | A list of files that are direct child. |
Sample code
1: | directory dir = new directory("c:\somewhere..."); |
2: | list{file} files = dir.GetFiles(); |
Notes
It's a wrapper of the System.IO.DirectoryInfo.GetFiles() method.
Please note that this method do not work recursively. It returns a list of direct children.