Directory Methods
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The Directory type exposes the following members.
| Name | Description | |
|---|---|---|
|
CreateDirectory | Creates all directories and subdirectories as specified by path. |
|
Delete(String) | Deletes an empty directory from a specified path. |
|
Delete(String, Boolean) | Deletes the specified directory and, if indicated, any subdirectories and files in the directory. |
|
Exists | Determines whether the given path refers to an existing directory on disk. |
|
GetCreationTime | Gets the creation date and time of a directory. |
|
GetCurrentDirectory | Gets the current working directory of the application. |
|
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. |
|
GetDirectoryRoot | Returns the volume information, root information, or both for the specified path. |
|
GetFiles(String) | Returns the names of files in the specified directory. |
|
GetFiles(String, String) | Returns the names of files in the specified directory that match the specified search pattern. |
|
GetFileSystemEntries(String) | Returns the names of all files and subdirectories in the specified directory. |
|
GetFileSystemEntries(String, String) | Returns an array of file system entries matching the specified search criteria. |
|
GetLastAccessTime | Returns the date and time the specified file or directory was last accessed. |
|
GetLastWriteTime | Returns the date and time the specified file or directory was last written to. |
|
Move | Moves a file or a directory and its contents to a new location. |
|
SetCurrentDirectory | Security Critical. Sets the application's current working directory to the specified directory. |
Show: