Directory Methods |
The Directory type exposes the following members.
Name | Description | |
---|---|---|
CreateDirectory |
Creates all directories and subdirectories as specified by path.
(Overrides AbstractDirectoryCreateDirectory(String).) | |
Delete(String) |
Deletes an empty directory.
(Overrides AbstractDirectoryDelete(String).) | |
Delete(String, Boolean) |
Deletes an empty directory and, if indicated, any subdirectories and files in the directory.
(Overrides AbstractDirectoryDelete(String, Boolean).) | |
DeleteDirectoryStructure |
Deletes all files in the directory structure. It works also in a shared hosting environment.
(Overrides AbstractDirectoryDeleteDirectoryStructure(String).) | |
EnumerateDirectories(String) |
Returns an enumerable collection of directory names in a specified path.
(Inherited from AbstractDirectory.) | |
EnumerateDirectories(String, String) |
Returns an enumerable collection of directory names that match a search pattern in a specified path.
(Inherited from AbstractDirectory.) | |
EnumerateDirectories(String, String, SearchOption) |
Returns an enumerable collection of directory names that match a search pattern in a specified path,
and optionally searches subdirectories.
(Overrides AbstractDirectoryEnumerateDirectories(String, String, SearchOption).) | |
EnumerateFiles(String) |
Returns an enumerable collection of file names in a specified path.
(Inherited from AbstractDirectory.) | |
EnumerateFiles(String, String) |
Returns an enumerable collection of file names that match a search pattern in a specified path.
(Overrides AbstractDirectoryEnumerateFiles(String, String).) | |
Exists |
Determines whether the given path refers to an existing directory on disk.
(Overrides AbstractDirectoryExists(String).) | |
GetAccessControl | Obsolete.
Gets a DirectorySecurity object that encapsulates the access control list (ACL) entries for a specified directory.
(Overrides AbstractDirectoryGetAccessControl(String).) | |
GetDirectories(String) |
Returns the names of subdirectories (including their paths) in the specified directory.
(Inherited from AbstractDirectory.) | |
GetDirectories(String, String) |
Returns the names of subdirectories (including their paths) that match the specified search pattern in the specified directory.
(Inherited from AbstractDirectory.) | |
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.
(Overrides AbstractDirectoryGetDirectories(String, String, SearchOption).) | |
GetFiles(String) |
Returns the names of files (including their paths) in the specified directory.
(Inherited from AbstractDirectory.) | |
GetFiles(String, String) |
Returns the names of files (including their paths) that match the specified search pattern in the specified directory.
(Overrides AbstractDirectoryGetFiles(String, String).) | |
GetSearchCondition |
Returns search condition delegate.
(Inherited from AbstractDirectory.) | |
Move |
Moves a file or a directory and its contents to a new location.
(Overrides AbstractDirectoryMove(String, String).) | |
PrepareFilesForImport |
Prepares files for import. Converts them to media library.
(Overrides AbstractDirectoryPrepareFilesForImport(String).) |