Gets the contents of a directory.
C#
ilFileInfo = GetDirectoryContents (sName [, fsuFileSizeUnit]);
VB
ilFileInfo = GetDirectoryContents (sName [, fsuFileSizeUnit])
Variable | Description |
---|---|
ilFileInfo | A list with FileInfo objects containing information about all directory entries, or null if the directory does not exist. IList<FileInfo>. |
sName | The path to the directory. Can be either an absolute path or a path relative to the current working directory. String. |
fsuFileSizeUnit | Optional: The unit in which the file size is measured. Defaults to FileSizeUnit.Byte. FileSizeUnit. |