Click or drag to resize

Alphaleonis.Win32.Filesystem Namespace

The Filesystem namespace contains classes to access and work with the local filesystem. Many of the classes in this namespace are replicas of the ones available in the System.IO namespace, but with added functionality. All methods in this namespace accept long windows unicode paths (i.e. paths starting with \\?\). Additional classes and methods are provided to provide more advanced functionality than that of System.IO.
Classes
  ClassDescription
Public classAlreadyExistsException
[AlphaFS] The exception that is thrown when an attempt to create a file or directory that already exists was made.

 

Both ERROR_ALREADY_EXISTS and ERROR_FILE_EXISTS can cause this Exception.

Public classBackupFileStream
The BackupFileStream provides access to data associated with a specific file or directory, including security information and alternative data streams, for backup and restore operations.
Public classBackupStreamInfo
The BackupStreamInfo structure contains stream header data.
Public classByHandleFileInfo
Contains information that the GetFileInformationByHandle function retrieves.
Public classCopyMoveResult
Class for CopyMoveResult that contains the results for the Copy or Move action.
Remarks
Normally there is no need to manually instantiate and/or populate this class.
Public classDevice
Provides static methods to retrieve device resource information from a local or remote host.
Public classDeviceInfo
Provides access to information of a device, on a local or remote host.
Public classDeviceNotReadyException
[AlphaFS] The requested operation could not be completed because the device is not ready.
Public classDirectory
Exposes static methods for creating, moving, and enumerating through directories and subdirectories.

This class cannot be inherited.

Public classDirectoryEnumerationFilters
[AlphaFS] Specifies a set of custom filters to be used with enumeration methods of Directory, e.g., EnumerateDirectories(String), EnumerateFiles(String), or EnumerateFileSystemEntries(String).
Public classDirectoryInfo
Exposes instance methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.
Public classDirectoryNotEmptyException
[AlphaFS] The operation could not be completed because the directory is not empty.
Public classDirectoryReadOnlyException
[AlphaFS] The operation could not be completed because the directory is read-only.
Public classDiskSpaceInfo
Retrieves information about the amount of space that is available on a disk volume, which is the total amount of space, the total amount of free space, and the total amount of free space available to the user that is associated with the calling thread.

This class cannot be inherited.

Public classDriveInfo
Provides access to information on a local or remote drive.
Public classFile
Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects.

This class cannot be inherited.

Public classFileIdBothDirectoryInfo
Contains information about files in the specified directory. Used for directory handles.
Public classFileInfo
Provides properties and instance methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects. This class cannot be inherited.
Public classFileReadOnlyException
[AlphaFS] The operation could not be completed because the file is read-only.
Public classFileSystemEntryInfo
Represents information about a file system entry.

This class cannot be inherited.

Public classFileSystemInfo
Provides the base class for both FileInfo and DirectoryInfo objects.
Public classInvalidTransactionException
[AlphaFS] The transaction handle associated with this operation is not valid.
Public classKernelTransaction
A KTM transaction object for use with the transacted operations in Alphaleonis.Win32.Filesystem
Public classLinkTargetInfo
Information about the target of a symbolic link or mount point.
Public classNotAReparsePointException
[AlphaFS] The file or directory was not a reparse point.
Public classNotSameDeviceException
[AlphaFS] The exception that is thrown when an attempt perform an operation across difference devices when this is not supported.
Public classPath
Performs operations on String instances that contain file or directory path information. These operations are performed in a cross-platform manner.
Public classSafeFindFileHandle
Represents a wrapper class for a handle used by the FindFirstFile/FindNextFile Win32 API functions.
Public classSafeFindVolumeHandle
Represents a wrapper class for a handle used by the FindFirstVolume/FindNextVolume methods of the Win32 API.
Public classShell32
Provides access to a file system object, using Shell32.
Public classShell32Info
Contains Shell32 information about a file.
Public classSymbolicLinkTargetInfo
Represents information about a symbolic link.
Public classTransactionalConflictException
[AlphaFS] The function attempted to use a name that is reserved for use by another transaction.
Public classTransactionAlreadyAbortedException
[AlphaFS] It is too late to perform the requested operation, since the Transaction has already been aborted.
Public classTransactionAlreadyCommittedException
[AlphaFS] It is too late to perform the requested operation, since the Transaction has already been committed.
Public classTransactionException
[AlphaFS] The exception that is thrown when an attempt to create a file or directory that already exists was made.
Public classUnrecognizedReparsePointException
[AlphaFS] The function attempted to use a name that is reserved for use by another transaction.
Public classUnsupportedRemoteTransactionException
[AlphaFS] The remote server or share does not support transacted file operations.
Public classVolume
[AlphaFS] Static class providing utility methods for working with Microsoft Windows devices and volumes.
Public classVolumeInfo
Contains information about a filesystem Volume.
Structures
  StructureDescription
Public structureAlternateDataStreamInfo
Information about an alternate data stream.
Public structureFileIdInfo
Contains information that the GetFileInformationByHandle function retrieves.
Public structureShell32FileInfo
SHFILEINFO structure, contains information about a file system object.
Delegates
  DelegateDescription
Public delegateCopyMoveProgressRoutine
Callback used by CopyFileXxx and MoveFileXxx to report progress about the copy/move operation.
Public delegateErrorHandler
[AlphaFS] Represents the method that will handle an error raised during retrieving file system entries.
Enumerations
  EnumerationDescription
Public enumerationCopyMoveProgressCallbackReason
Used by CopyFileXxx and MoveFileXxx. The reason that CopyMoveProgressRoutine was called.
Public enumerationCopyMoveProgressResult
Used by CopyFileXxx and MoveFileXxx. The CopyMoveProgressRoutine function should return one of the following values.
Public enumerationCopyOptions
Flags that specify how a file or directory is to be copied.
Public enumerationDeviceGuid
System-Defined Device Interface Classes
Public enumerationDirectoryEnumerationOptions
[AlphaFS] Directory enumeration options, flags that specify how a directory is to be enumerated.
Public enumerationDosDeviceAttributes
Defines the controllable aspects of the Volume.DefineDosDevice() method.
Public enumerationExtendedFileAttributes
Specifies how the operating system should open a file.
Public enumerationFileEncryptionStatus
Represents the encryption status of the specified file.
Public enumerationFinalPathFormats
Determines the format to convert a path to using GetFinalPathNameByHandle(SafeFileHandle)
Public enumerationGetFullPathOptions
A bitfield of flags for specifying options for various internal operations that convert paths to full paths.
Public enumerationMoveOptions
Used by MoveFileXxx.Flags that specify how a file or directory is to be moved.
Public enumerationPathFormat
Indicates the format of a path passed to a method.
Public enumerationReparsePointTag
Enumeration specifying the different reparse point tags.
Remarks

Reparse tags, with the exception of IO_REPARSE_TAG_SYMLINK, are processed on the server and are not processed by a client after transmission over the wire.

Clients should treat associated reparse data as opaque data.

Public enumerationShell32AssociationAttributes
Provides information for the IQueryAssociations interface methods, used by Shell32.
Public enumerationShell32AssociationString
ASSOCSTR enumeration - Used by the AssocQueryString() function to define the type of string that is to be returned.
Public enumerationShell32FileAttributes
Shell32 FileAttributes structure, used to retrieve the different types of a file system object.
Public enumerationShell32GetAttributesOf
SFGAO - Attributes that can be retrieved from a file system object.
Public enumerationShell32UrlType
Used by method UrlIs() to define a URL type.
Public enumerationSTREAM_ATTRIBUTES
WIN32_STREAM_ID Attributes of data to facilitate cross-operating system transfer.
Public enumerationSTREAM_ID
The type of the data contained in the backup stream.
Public enumerationSymbolicLinkTarget
Indicates whether the link target is a file or directory.
Public enumerationSymbolicLinkType
Specifies the type of a symbolic link.