Directory Methods |
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.
| |
Delete(String, Boolean) |
Deletes an empty directory and, if indicated, any subdirectories and files in the directory.
| |
DeleteDirectoryStructure |
Deletes all files in the directory structure. It works also in a shared hosting environment.
| |
Exists |
Determines whether the given path refers to an existing directory on disk.
| |
ExistsRelative |
Determines whether the specified file exists.
| |
GetAccessControl |
Gets a FileSecurity object that encapsulates the access control list (ACL) entries for a specified directory.
| |
GetCurrentDirectory |
Gets the current working directory of the application.
| |
GetDirectories(String) |
Gets the names of subdirectories in the specified directory.
| |
GetDirectories(String, String) |
Returns the names of subdirectories (including their paths) in the specified directory.
| |
GetDirectories(String, String, SearchOption) |
Gets the names of the subdirectories (including their paths) that match the specified search pattern
in the current directory, and optionally searches subdirectories.
| |
GetDirectoryObject |
Gets the directory provider object for given path
| |
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) in the specified directory.
| |
LogDirectoryOperation(String, String) |
Logs the directory operation to a current request log for debugging.
| |
LogDirectoryOperation(String, String, String) |
Logs the directory operation to a current request log for debugging.
| |
Move |
Moves a file or a directory and its contents to a new location.
| |
PrepareFilesForImport |
Prepares files for import. Converts them to media library.
|