Directory MembersKentico 8.1 API Reference
The Directory type exposes the following members.
Methods

  NameDescription
Public methodStatic memberCreateDirectory
Creates all directories and subdirectories as specified by path.
Public methodStatic memberDelete(String)
Deletes an empty directory.
Public methodStatic memberDelete(String, Boolean)
Deletes an empty directory and, if indicated, any subdirectories and files in the directory.
Public methodStatic memberDeleteDirectoryStructure
Deletes all files in the directory structure. It works also in a shared hosting environment.
Public methodStatic memberExists
Determines whether the given path refers to an existing directory on disk.
Public methodStatic memberExistsRelative
Determines whether the specified file exists.
Public methodStatic memberGetAccessControl
Gets a FileSecurity object that encapsulates the access control list (ACL) entries for a specified directory.
Public methodStatic memberGetCurrentDirectory
Gets the current working directory of the application.
Public methodStatic memberGetDirectories(String)
Gets the names of subdirectories in the specified directory.
Public methodStatic memberGetDirectories(String, String)
Returns the names of subdirectories (including their paths) in the specified directory.
Public methodStatic memberGetDirectories(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.
Public methodStatic memberGetDirectoryObject
Gets the directory provider object for given path
Public methodStatic memberGetFiles(String)
Returns the names of files (including their paths) in the specified directory.
Public methodStatic memberGetFiles(String, String)
Returns the names of files (including their paths) in the specified directory.
Public methodStatic memberLogDirectoryOperation(String, String)
Logs the directory operation to a current request log for debugging.
Public methodStatic memberLogDirectoryOperation(String, String, String)
Logs the directory operation to a current request log for debugging.
Public methodStatic memberMove
Moves a file or a directory and its contents to a new location.
Public methodStatic memberPrepareFilesForImport
Prepares files for import. Converts them to media library.
Back to Top
See Also