DirectoryInfo Class |
Namespace: Alphaleonis.Win32.Filesystem
The DirectoryInfo type exposes the following members.
Name | Description | |
---|---|---|
DirectoryInfo(String) | Initializes a new instance of the DirectoryInfo class on the specified path. | |
DirectoryInfo(String, PathFormat) | [AlphaFS] Initializes a new instance of the DirectoryInfo class on the specified path. | |
DirectoryInfo(KernelTransaction, String) | [AlphaFS] Initializes a new instance of the DirectoryInfo class on the specified path. | |
DirectoryInfo(KernelTransaction, String, PathFormat) | [AlphaFS] Initializes a new instance of the DirectoryInfo class on the specified path. |
Name | Description | |
---|---|---|
Compress | [AlphaFS] Compresses a directory using NTFS compression. | |
Compress(DirectoryEnumerationOptions) | [AlphaFS] Compresses a directory using NTFS compression. | |
CopyTo(String) | [AlphaFS] Copies a DirectoryInfo instance and its contents to a new path. | |
CopyTo(String, CopyOptions) | [AlphaFS] Copies an existing directory to a new directory, allowing the overwriting of an existing directory, CopyOptions can be specified. | |
CopyTo(String, PathFormat) | [AlphaFS] Copies a DirectoryInfo instance and its contents to a new path. | |
CopyTo(String, CopyOptions, PathFormat) | [AlphaFS] Copies an existing directory to a new directory, allowing the overwriting of an existing directory, CopyOptions can be specified. | |
CopyTo(String, CopyOptions, CopyMoveProgressRoutine, Object) | [AlphaFS] Copies an existing directory to a new directory, allowing the overwriting of an existing directory, CopyOptions can be specified.
and the possibility of notifying the application of its progress through a callback function. | |
CopyTo(String, CopyOptions, CopyMoveProgressRoutine, Object, PathFormat) | [AlphaFS] Copies an existing directory to a new directory, allowing the overwriting of an existing directory, CopyOptions can be specified.
and the possibility of notifying the application of its progress through a callback function. | |
CountFileSystemObjects(DirectoryEnumerationOptions) | [AlphaFS] Counts file system objects: files, folders or both) in a given directory. | |
CountFileSystemObjects(String, DirectoryEnumerationOptions) | [AlphaFS] Counts file system objects: files, folders or both) in a given directory. | |
Create | Creates a directory. | |
Create(Boolean) | [AlphaFS] Creates a directory using a DirectorySecurity object. | |
Create(DirectorySecurity) | Creates a directory using a DirectorySecurity object. | |
Create(DirectorySecurity, Boolean) | [AlphaFS] Creates a directory using a DirectorySecurity object. | |
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
CreateSubdirectory(String) | Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class. | |
CreateSubdirectory(String, Boolean) | [AlphaFS] Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class. | |
CreateSubdirectory(String, DirectorySecurity) | Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class. | |
CreateSubdirectory(String, DirectorySecurity, Boolean) | [AlphaFS] Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class. | |
CreateSubdirectory(String, String, Boolean) | [AlphaFS] Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class. | |
CreateSubdirectory(String, String, DirectorySecurity, Boolean) | [AlphaFS] Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class. | |
Decompress | [AlphaFS] Decompresses an NTFS compressed directory. | |
Decompress(DirectoryEnumerationOptions) | [AlphaFS] Decompresses an NTFS compressed directory. | |
Decrypt | [AlphaFS] Decrypts a directory that was encrypted by the current account using the Encrypt method. | |
Decrypt(Boolean) | [AlphaFS] Decrypts a directory that was encrypted by the current account using the Encrypt method. | |
Delete | Deletes this DirectoryInfo if it is empty. (Overrides FileSystemInfoDelete.) | |
Delete(Boolean) | Deletes this instance of a DirectoryInfo, specifying whether to delete subdirectories and files. | |
Delete(Boolean, Boolean) | [AlphaFS] Deletes this instance of a DirectoryInfo, specifying whether to delete files and subdirectories. | |
DeleteEmptySubdirectories | [AlphaFS] Deletes empty subdirectories from the DirectoryInfo instance. | |
DeleteEmptySubdirectories(Boolean) | [AlphaFS] Deletes empty subdirectories from the DirectoryInfo instance. | |
DeleteEmptySubdirectories(Boolean, Boolean) | [AlphaFS] Deletes empty subdirectories from the DirectoryInfo instance. | |
DisableCompression | [AlphaFS] Disables compression of the specified directory and the files in it. | |
DisableEncryption | [AlphaFS] Disables encryption of the specified directory and the files in it. It does not affect encryption of subdirectories below the indicated directory. | |
EnableCompression | [AlphaFS] Enables compression of the specified directory and the files in it. | |
EnableEncryption | [AlphaFS] Enables encryption of the specified directory and the files in it. It does not affect encryption of subdirectories below the indicated directory. | |
Encrypt | [AlphaFS] Encrypts a directory so that only the account used to encrypt the directory can decrypt it. | |
Encrypt(Boolean) | [AlphaFS] Decrypts a directory that was encrypted by the current account using the Encrypt method. | |
EnumerateDirectories | Returns an enumerable collection of directory information in the current directory. | |
EnumerateDirectories(String) | Returns an enumerable collection of directory information that matches a specified search pattern. | |
EnumerateDirectories(String, SearchOption) | Returns an enumerable collection of directory information that matches a specified search pattern and search subdirectory option. | |
EnumerateFiles | Returns an enumerable collection of file information in the current directory. | |
EnumerateFiles(String) | Returns an enumerable collection of file information that matches a search pattern. | |
EnumerateFiles(String, SearchOption) | Returns an enumerable collection of file information that matches a specified search pattern and search subdirectory option. | |
EnumerateFileSystemInfos | Returns an enumerable collection of file system information in the current directory. | |
EnumerateFileSystemInfos(String) | Returns an enumerable collection of file system information that matches a specified search pattern. | |
EnumerateFileSystemInfos(String, SearchOption) | Returns an enumerable collection of file system information that matches a specified search pattern and search subdirectory option. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from FileSystemInfo.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAccessControl | Gets a DirectorySecurity object that encapsulates the access control list (ACL) entries for the directory described by the current DirectoryInfo object. | |
GetAccessControl(AccessControlSections) | Gets a DirectorySecurity object that encapsulates the specified type of access control list (ACL) entries for the directory described by the current DirectoryInfo object. | |
GetDirectories | Returns the subdirectories of the current directory. | |
GetDirectories(String) | Returns an array of directories in the current DirectoryInfo matching the given search criteria. | |
GetDirectories(String, SearchOption) | Returns an array of directories in the current DirectoryInfo matching the given search criteria and using a value to determine whether to search subdirectories. | |
GetFiles | Returns a file list from the current directory. | |
GetFiles(String) | Returns a file list from the current directory matching the given search pattern. | |
GetFiles(String, SearchOption) | Returns a file list from the current directory matching the given search pattern and using a value to determine whether to search subdirectories. | |
GetFileSystemInfos | Returns an array of strongly typed FileSystemInfo entries representing all the files and subdirectories in a directory. | |
GetFileSystemInfos(String) | Retrieves an array of strongly typed FileSystemInfo objects representing the files and subdirectories that match the specified search criteria. | |
GetFileSystemInfos(String, SearchOption) | Retrieves an array of strongly typed FileSystemInfo objects representing the files and subdirectories that match the specified search criteria. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from FileSystemInfo.) | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
MoveTo(String) | Moves a DirectoryInfo instance and its contents to a new path. | |
MoveTo(String, MoveOptions) | [AlphaFS] Moves a DirectoryInfo instance and its contents to a new path, MoveOptions can be specified. | |
MoveTo(String, PathFormat) | Moves a DirectoryInfo instance and its contents to a new path. | |
MoveTo(String, MoveOptions, PathFormat) | [AlphaFS] Moves a DirectoryInfo instance and its contents to a new path, MoveOptions can be specified. | |
MoveTo(String, MoveOptions, CopyMoveProgressRoutine, Object) | [AlphaFS] Moves a DirectoryInfo instance and its contents to a new path, MoveOptions can be specified,
and the possibility of notifying the application of its progress through a callback function. | |
MoveTo(String, MoveOptions, CopyMoveProgressRoutine, Object, PathFormat) | [AlphaFS] Moves a DirectoryInfo instance and its contents to a new path, MoveOptions can be specified,
and the possibility of notifying the application of its progress through a callback function. | |
Refresh | Refreshes the state of the object. | |
RefreshEntryInfo | Refreshes the state of the FileSystemEntryInfo EntryInfo instance. | |
SetAccessControl(DirectorySecurity) | Applies access control list (ACL) entries described by a DirectorySecurity object to the directory described by the current DirectoryInfo object. | |
SetAccessControl(DirectorySecurity, AccessControlSections) | Applies access control list (ACL) entries described by a DirectorySecurity object to the directory described by the current DirectoryInfo object. | |
ToString | Returns the original path that was passed by the user. (Overrides FileSystemInfoToString.) |
Name | Description | |
---|---|---|
FullPath | Represents the fully qualified path of the file or directory. (Inherited from FileSystemInfo.) | |
OriginalPath | The path originally specified by the user, whether relative or absolute. (Inherited from FileSystemInfo.) |
Name | Description | |
---|---|---|
Attributes |
Gets or sets the attributes for the current file or directory.
(Inherited from FileSystemInfo.) | |
CreationTime | Gets or sets the creation time of the current file or directory. (Inherited from FileSystemInfo.) | |
CreationTimeUtc |
Gets or sets the creation time, in coordinated universal time (UTC), of the current file or directory.
(Inherited from FileSystemInfo.) | |
DisplayPath | Returns the path as a string. (Inherited from FileSystemInfo.) | |
EntryInfo | [AlphaFS] Gets the instance of the FileSystemEntryInfo class. (Inherited from FileSystemInfo.) | |
Exists |
Gets a value indicating whether the directory exists.
(Overrides FileSystemInfoExists.) | |
Extension |
Gets the string representing the extension part of the file.
(Inherited from FileSystemInfo.) | |
FullName |
Gets the full path of the directory or file.
(Inherited from FileSystemInfo.) | |
IsDirectory | [AlphaFS] The initial "IsDirectory" indicator that was passed to the constructor. (Inherited from FileSystemInfo.) | |
LastAccessTime |
Gets or sets the time the current file or directory was last accessed.
(Inherited from FileSystemInfo.) | |
LastAccessTimeUtc |
Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed.
(Inherited from FileSystemInfo.) | |
LastWriteTime | Gets or sets the time when the current file or directory was last written to. (Inherited from FileSystemInfo.) | |
LastWriteTimeUtc |
Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.
(Inherited from FileSystemInfo.) | |
LongFullName | The full path of the file system object in Unicode (LongPath) format. (Inherited from FileSystemInfo.) | |
Name | Gets the name of this DirectoryInfo instance. (Overrides FileSystemInfoName.) | |
Parent | Gets the parent directory of a specified subdirectory. | |
Root | Gets the root portion of the directory. | |
Transaction | [AlphaFS] Represents the KernelTransaction that was passed to the constructor. (Inherited from FileSystemInfo.) |