Directory Methods |
The Directory type exposes the following members.
Name | Description | |
---|---|---|
CreateDirectory(String) | Creates all directories and subdirectories in the specified path. | |
CreateDirectory(String, DirectorySecurity) | Creates all the directories in the specified path, applying the specified Windows security. | |
Exists | Determines whether the given path refers to an existing directory on disk. | |
GetDirectories(String) | Gets the names of subdirectories (including their paths) in the specified directory. | |
GetDirectories(String, String) | Gets an array of directories (including their paths) that match the specified search pattern in the current directory. | |
GetDirectories(String, String, SearchOption) | Gets the names of the directories (including their paths) that match the specified search pattern in the current directory, and optionally searches subdirectories. | |
GetFiles(String) | Returns the names of files (including their paths) in the specified directory. | |
GetFiles(String, String) | Returns the names of files (including their paths) that match the specified search pattern in the specified directory. | |
GetFiles(String, String, SearchOption) | Returns the names of files (including their paths) that match the specified search pattern in the specified directory, using a value to determine whether to search subdirectories. |