Click or drag to resize
DirectoryHelper Class
Directory management methods.
Inheritance Hierarchy
SystemObject
  CMS.BaseCoreMethods
    CMS.BaseAbstractHelper
      CMS.BaseAbstractHelperDirectoryHelper
        CMS.IODirectoryHelper

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 8.2.23
Syntax
C#
public class DirectoryHelper : AbstractHelper<DirectoryHelper>

The DirectoryHelper type exposes the following members.

Constructors
  NameDescription
Public methodDirectoryHelper
Top
Methods
  NameDescription
Public methodStatic memberCombinePath
Combines parts of one path together, handles back slashes. Path ends without backslash.
Protected methodCombinePathInternal
Combines parts of one path together, handles back slashes.
Public methodStatic memberCopyDirectory
Copies specified directory including its subdirectories and all underlying files.
Protected methodCopyDirectoryInternal
Copies specified directory including its subdirectories and all underlying files.
Public methodStatic memberCopyFile
Copies the file.
Protected methodCopyFileInternal
Copies the file.
Public methodStatic memberCreateDirectory
Creates directory. It works also in a shared hosting environment.
Protected methodCreateDirectoryInternal
Creates directory. It works also in a shared hosting environment.
Public methodStatic memberDeleteDirectory(String)
Deletes the directory. It works also in a shared hosting environment.
Public methodStatic memberDeleteDirectory(String, Boolean)
Deletes the directory. It works also in a shared hosting environment.
Protected methodDeleteDirectoryInternal(String)
Deletes the directory. It works also in a shared hosting environment.
Protected methodDeleteDirectoryInternal(String, Boolean)
Deletes the directory. It works also in a shared hosting environment.
Public methodStatic memberDeleteDirectoryStructure
Deletes the directory structure. It works also in a shared hosting environment.
Protected methodDeleteDirectoryStructureInternal
Deletes the directory structure. It works also in a shared hosting environment.
Public methodStatic memberEnsureDiskPath
Checks if all folders of the given path exist and if not, it creates them.
Protected methodEnsureDiskPathInternal
Checks if all folders of the given path exist and if not, it creates them.
Public methodStatic memberEnsurePathBackSlash
This method ensures that path will end with one backslash.
Protected methodEnsurePathBackSlashInternal
This method ensures that path will end with one backslash.
Public methodStatic memberCheckPermissions(String)
Check permissions (checks read and write permissions).
Public methodStatic memberCheckPermissions(String, Boolean, Boolean, Boolean, Boolean)
Check write permissions.
Protected methodCheckPermissionsInternal
Check write permissions.
Public methodStatic memberMoveDirectory
Moves specified directory to new path.
Protected methodMoveDirectoryInternal
Moves specified directory to new path.
Public methodSetAsDefaultHelper
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Properties
  NameDescription
Public propertyStatic memberAllowCheckIOPermissions
Allow checking IO permissions?
Public propertyStatic memberIsWebRootWritable
Returns whether web root is writable.
Top
See Also