Click or drag to resize
Galactic API

Directory Class

A utility class for manipulating directories on the file system.
Inheritance Hierarchy
SystemObject
  Galactic.FileSystemDirectory

Namespace:  Galactic.FileSystem
Assembly:  Galactic.FileSystem (in Galactic.FileSystem.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public static class Directory

The Directory type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddAccessRule
Adds an access rule to the directory at the supplied path.
Public methodStatic memberBlockInheritance
Blocks inheritance on this directory.
Public methodStatic memberClone
Clones a directory to a new location. Does not copy any files or folders beneath it.
Public methodStatic memberCommitChanges
Commits any pending changes to the directory specified by the supplied path.
Public methodStatic memberCopy
Copies a directory to a new location including all files and folders beneath it. Creates a new directory if necessary.
Public methodStatic memberCreate
Creates a directory at the specified path.
Public methodStatic memberDelete
Deletes a directory at the specified path.
Public methodStatic memberExists
Checks whether the directory at the specified path exists on the file system.
Public methodStatic memberGetListing
Gets a list of the contents of a directory at the specified path.
Public methodStatic memberGetSecurityObject
Gets the DirectorySecurity object for the directory specified by the supplied path.
Public methodStatic memberGetSizeInBytes
Gets the size of a directory's contents in bytes.
Public methodStatic memberGiveAccess(DirectoryAccessRights, Byte, String, DirectorySecurity, Boolean)
Gives the supplied data access rights to the account with the supplied security identifier on the target directory. Applies inherited permissions to folders and files beneath the target directory.
Public methodStatic memberGiveAccess(DirectoryAccessRights, DirectoryEntry, String, DirectorySecurity, Boolean)
Gives the supplied data access rights to the entry supplied on the target directory. Applies inherited permissions to folders and files beneath the target directory.
Public methodStatic memberGiveAccess(Byte, String, DirectorySecurity, FileSystemRights, Boolean, Boolean, Boolean)
Gives access to the account with the supplied security identifier on the target directory.
Public methodStatic memberGiveAccess(DirectoryEntry, String, DirectorySecurity, FileSystemRights, Boolean, Boolean, Boolean)
Gives access to the entry supplied on the target directory.
Public methodStatic memberGiveAccess(DirectoryAccessRights, Byte, String, DirectorySecurity, Boolean, Boolean, Boolean)
Gives the supplied data access rights to the account with the supplied security identifier on the target directory.
Public methodStatic memberGiveAccess(DirectoryAccessRights, DirectoryEntry, String, DirectorySecurity, Boolean, Boolean, Boolean)
Gives the supplied data access rights to the entry supplied on the target directory.
Public methodStatic memberMove
Moves a directory to a new location.
Public methodStatic memberRemoveAllAccessRules
Removes all access rules from the supplied directory.
Public methodStatic memberRemoveAllExplicitAccessRules
Removes all explicit access rules from the supplied directory.
Public methodStatic memberSetOwner(String, DirectorySecurity, Byte, Boolean)
Sets the owner of a directory.
Public methodStatic memberSetOwner(String, DirectorySecurity, DirectoryEntry, Boolean)
Sets the owner of a directory.
Top
See Also