The Directory type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
Directory |
Methods
Name | Description | |
---|---|---|
CreateDirectory |
Creates all directories and subdirectories as specified by path.
(Overrides AbstractDirectory CreateDirectory(String).) | |
CreateDirectoryStructure |
Creates directory structure for given path.
| |
Delete(String) |
Deletes an empty directory.
(Overrides AbstractDirectory Delete(String).) | |
Delete(String, Boolean) |
Deletes an empty directory and, if indicated, any subdirectories and files in the directory.
(Overrides AbstractDirectory Delete(String, Boolean).) | |
DeleteDirectoryStructure |
Deletes all files in the directory structure. It works also in a shared hosting environment.
(Overrides AbstractDirectory DeleteDirectoryStructure(String).) | |
Equals | (Inherited from Object.) | |
Exists |
Determines whether the given path refers to an existing directory on disk.
(Overrides AbstractDirectory Exists(String).) | |
ExistsInBlobStorage |
Determines whether the given path refers to an existing directory on azure blob.
| |
ExistsInFileSystem |
Determines whether the given path refers to an existing directory on filesystem
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAccessControl |
Gets a FileSecurity object that encapsulates the access control list (ACL) entries for a specified file.
(Overrides AbstractDirectory GetAccessControl(String).) | |
GetBlobPathFromPath |
Returns blob path from given file system path. Returns relative path with slashes '/' from the root of the blob storage.
| |
GetCaseValidPath |
Returns lowered path if given container if not case sensitive. Otherwise method returns original path.
| |
GetCurrentDirectory |
Gets the current working directory of the application.
(Overrides AbstractDirectory GetCurrentDirectory .) | |
GetDirectories(String) |
Gets the names of subdirectories in the specified directory.
(Overrides AbstractDirectory GetDirectories(String).) | |
GetDirectories(String, String) |
Gets the names of subdirectories in the specified directory.
(Overrides AbstractDirectory GetDirectories(String, String).) | |
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 AbstractDirectory GetDirectories(String, String, SearchOption).) | |
GetFiles(String) |
Returns the names of files (including their paths) in the specified directory.
(Overrides AbstractDirectory GetFiles(String).) | |
GetFiles(String, String) |
Returns the names of files (including their paths) in the specified directory.
(Overrides AbstractDirectory GetFiles(String, String).) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetPathFromUri |
Returns system path from URI and container name.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValidPath |
Converts path to valid and lower case.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Move |
Moves directory.
(Overrides AbstractDirectory Move(String, String).) | |
PrepareFilesForImport |
Prepares files for import. Converts them to media library.
(Overrides AbstractDirectory PrepareFilesForImport(String).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Extension Methods
Name | Description | |
---|---|---|
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
See Also