Click or drag to resize
Directory Class
Envelope for Directory classes
Inheritance Hierarchy
SystemObject
  CMS.IODirectory

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 13.0.131
Syntax
C#
public static class Directory

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 memberEnumerateDirectories(String)
Returns an enumerable collection of directory names in a specified path.
Public methodStatic memberEnumerateDirectories(String, String)
Returns an enumerable collection of directory names that match a search pattern in a specified path.
Public methodStatic memberEnumerateDirectories(String, String, SearchOption)
Returns an enumerable collection of directory names that match a search pattern in a specified path, and optionally searches subdirectories.
Public methodStatic memberEnumerateFiles(String)
Returns an enumerable collection of file names in a specified path.
Public methodStatic memberEnumerateFiles(String, String)
Returns an enumerable collection of file names that match a search pattern in a specified path.
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 Obsolete.
Gets a FileSecurity object that encapsulates the access control list (ACL) entries for a specified directory.
Public methodStatic memberGetDirectories(String)
Returns the names of subdirectories (including their paths) in the specified directory.
Public methodStatic memberGetDirectories(String, String)
Returns the names of subdirectories (including their paths) that match the specified search pattern 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) that match the specified search pattern 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.
Top
See Also