Click or drag to resize
Directory Methods

The Directory type exposes the following members.

Methods
  NameDescription
Public methodCreateDirectory
Creates all directories and subdirectories as specified by path.
(Overrides AbstractDirectoryCreateDirectory(String).)
Public methodDelete(String)
Deletes an empty directory.
(Overrides AbstractDirectoryDelete(String).)
Public methodDelete(String, Boolean)
Deletes an empty directory and, if indicated, any subdirectories and files in the directory.
(Overrides AbstractDirectoryDelete(String, Boolean).)
Public methodDeleteDirectoryStructure
Deletes all files in the directory structure. It works also in a shared hosting environment.
(Overrides AbstractDirectoryDeleteDirectoryStructure(String).)
Public methodExists
Determines whether the given path refers to an existing directory on disk.
(Overrides AbstractDirectoryExists(String).)
Public methodGetAccessControl
Gets a DirectorySecurity object that encapsulates the access control list (ACL) entries for a specified directory.
(Overrides AbstractDirectoryGetAccessControl(String).)
Public methodGetCurrentDirectory
Gets the current working directory of the application.
(Overrides AbstractDirectoryGetCurrentDirectory.)
Public methodGetDirectories(String)
Gets the names of subdirectories in the specified directory.
(Overrides AbstractDirectoryGetDirectories(String).)
Public methodGetDirectories(String, String)
Returns the names of files (including their paths) in the specified directory.
(Overrides AbstractDirectoryGetDirectories(String, String).)
Public methodGetDirectories(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).)
Public methodGetFiles(String)
Returns the names of files (including their paths) in the specified directory.
(Overrides AbstractDirectoryGetFiles(String).)
Public methodGetFiles(String, String)
Returns the names of files (including their paths) in the specified directory.
(Overrides AbstractDirectoryGetFiles(String, String).)
Public methodMove
Moves a file or a directory and its contents to a new location.
(Overrides AbstractDirectoryMove(String, String).)
Public methodPrepareFilesForImport
Prepares files for import. Converts them to media library.
(Overrides AbstractDirectoryPrepareFilesForImport(String).)
Top
See Also