Click or drag to resize
FileSystemRepositoryHelper Class
Contains methods necessary to define and validate the behavior of file system repository.
Inheritance Hierarchy
SystemObject
  CMS.BaseCoreMethods
    CMS.BaseAbstractHelper
      CMS.BaseAbstractHelperFileSystemRepositoryHelper
        CMS.ContinuousIntegrationFileSystemRepositoryHelper

Namespace: CMS.ContinuousIntegration
Assembly: CMS.ContinuousIntegration (in CMS.ContinuousIntegration.dll) Version: 13.0.131
Syntax
C#
public class FileSystemRepositoryHelper : AbstractHelper<FileSystemRepositoryHelper>

The FileSystemRepositoryHelper type exposes the following members.

Constructors
  NameDescription
Public methodFileSystemRepositoryHelper
Top
Fields
  NameDescription
Protected fieldStatic memberHASH_DELIMITER
Delimiter between name and hash.
Protected fieldStatic memberSHORTENED_FILENAME_PART_DELIMITER
Delimiter between parts of shortened file name.
Top
Methods
  NameDescription
Public methodStatic memberDeleteDirectory
Deletes a directory specified by directoryPath.
Protected methodDeleteDirectoryInternal
Deletes a directory specified by directoryPath. If the delete method throws an IOException with HResult 0x80070091 (ERROR_DIR_NOT_EMPTY), it is ignored.
Public methodStatic memberDeleteRepositoryDirectoryIfEmpty
Deletes repository directory identified by relativeDirectoryPath. Does nothing when directory is not empty or relative path is null or empty string (to prevent unintended deletion of repository root).
Protected methodDeleteRepositoryDirectoryIfEmptyInternal
Deletes repository directory identified by relativeDirectoryPath. Does nothing when directory is not empty or relative path is null or empty string (to prevent unintended deletion of repository root).
Public methodStatic memberGetFileSystemName(String, Int32, Int32)
Gets file system safe representation of name. The resulting name does not exceed maxNameLength characters in length. maxNameLength must accommodate hashLength and delimiting character.
Public methodStatic memberCode exampleGetFileSystemName(String, String, Int32, Int32)
Gets file system safe representation of name. The resulting name does not exceed maxNameLength characters in length. maxNameLength must accommodate hashLength and delimiting character.
Protected methodCode exampleGetFileSystemNameInternal
Gets file system safe representation of name. The resulting name does not exceed maxNameLength characters in length. maxNameLength must accommodate hashLength and delimiting character.
Public methodStatic memberIsRepositoryInitialized
Checks whether repository is initialized, by testing the presence of the configuration file.
Protected methodIsRepositoryInitializedInternal
Checks whether repository is initialized, by testing the presence of the configuration file.
Public methodSetAsDefaultHelper
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.)
Top
See Also