FileSystemEntry Class |
Namespace: ShellBoost.Core.Utilities
public sealed class FileSystemEntry
The FileSystemEntry type exposes the following members.
Name | Description | |
---|---|---|
AllocationSize |
Gets the amount of space that is allocated for this entry.
| |
Attributes |
Gets the entry's attributes.
| |
ByteOffsetForPartitionAlignment |
Gets the offset used to align the partition to a physical sector boundary on the storage device, in bytes. If this value is set to STORAGE_INFO_OFFSET_UNKNOWN (0xffffffff), there was insufficient information to compute this field.
| |
ByteOffsetForSectorAlignment |
Gets the logical sector offset within the first physical sector where the first logical sector is placed, in bytes. If this value is set to STORAGE_INFO_OFFSET_UNKNOWN (0xffffffff), there was insufficient information to compute this field.
| |
ChangeTimeUtc |
Gets the time this entry was changed.
| |
CreationTimeUtc |
Gets the time this entry was created.
| |
FileSystemEffectivePhysicalBytesPerSectorForAtomicity |
Gets the size of the block used for atomicity by the file system. This may be a trade-off between the optimal size of the physical media and one that is easier to adapt existing code and structures.
| |
FullName |
Gets the full path name.
| |
Id |
Gets the 128-bit identifier for this entry. The identifier and the volume serial number uniquely identify an entry on a single computer. To determine whether two open handles represent the same entry, combine the identifier and the volume serial number for each entry and compare them.
| |
IsDirectory |
Gets a value indicating whether is entry is a directory or a file.
| |
IsMountPoint |
Gets a value indicating whether this instance is a mount point.
| |
IsSymbolicLink |
Gets a value indicating whether this instance is a symbolic link.
| |
LastAccessTimeUtc |
Gets the time this entry was accessed.
| |
LastWriteTimeUtc |
Gets the time this entry was written.
| |
LogicalBytesPerSector |
Gets the logical bytes per sector reported by physical storage. This is the smallest size for which uncached I/O is supported.
| |
MountPoint |
Gets the mount point, if any.
| |
Name |
Gets the name.
| |
NumberOfLinks |
Gets the number of links to this entry.
| |
Parent |
Gets the parent entry.
| |
PhysicalBytesPerSectorForAtomicity |
Gets the bytes per sector for atomic writes. Writes smaller than this may require a read before the entire block can be written atomically.
| |
PhysicalBytesPerSectorForPerformance |
Gets the bytes per sector for optimal performance for writes.
| |
ProcessPlaceholderCompatibilityMode |
Gets or sets the process placeholder compatibility mode.
| |
ReparsePointTag |
If the Attributes propery includes the ReparsePoint value, this member specifies the reparse point tag. Otherwise, this value is undefined and should not be used.
If the entry was not opened using the FILE_FLAG_OPEN_REPARSE_POINT attribute, this will be 0.
| |
Size |
Gets the end of entry.
| |
StorageFlags |
Gets a combination of flags specifying information about the alignment of the storage.
| |
SymbolicLink |
Gets the symbolic link, if any.
| |
ThreadPlaceholderCompatibilityMode |
Gets or sets the thread placeholder compatibility mode.
| |
Usn |
Gets the Update Sequence Number (USN).
| |
Volume |
Gets the volume that contains this entry.
| |
VolumeSerialNumber |
Gets the serial number of the volume that contains this entry.
|
Name | Description | |
---|---|---|
Close |
Close an opened entry using the handle.
| |
CreateDirectoryByPath |
Creates a new directory using a path.
| |
DeleteById |
Deletes an entry using its 128-bit identifier.
| |
DeleteByPath |
Deletes an entry using its path.
| |
DirectoryExistsByPath |
Determines whether the specified directory exists.
| |
EnumerateAllChildren |
Returns an enumerable collection of all entries in the current directory hierarchy.
| |
EnumerateChildren |
Returns an enumerable collection of entries in the current directory.
| |
ExistsById |
Determines whether the specified entry exists, using its 128-bit identifier.
| |
ExistsByPath |
Determines whether the specified entry exists.
| |
FileExistsByPath |
Determines whether the specified file exists.
| |
FromHandle |
Gets an entry from a handle.
| |
FromId |
Gets an entry using its 128-bit identifier.
| |
FromPath |
Gets an entry from a path.
| |
GetAttributesById |
Gets the attributes of the file or directory, using its 128-bit identifier.
| |
GetAttributesByPath |
Gets the attributes of the file or directory on the path.
| |
GetBasicInformation |
Gets the basic information for a path.
| |
GetFinalPath(FinalPathOptions, Boolean) |
Gets the final path for this entry.
| |
GetFinalPath(IntPtr, FinalPathOptions, Boolean) |
Gets the final path for the specified handle.
| |
GetFinalPath(String, FinalPathOptions, Boolean) |
Gets the final, case-sensitive path for a given path.
| |
GetFullPath(IntPtr, Boolean) |
Gets the full path for the specified handle.
| |
GetFullPath(String, Boolean) |
Gets the full, case-sensitive path for a given path.
| |
GetIdWithVolumeGuid |
Gets the volume guid and the file identifier of a path.
| |
GetIdWithVolumeSerialNumber |
Gets the volume serial number and file identifier of a path.
| |
GetMountPoint(IntPtr, Boolean) |
Gets the mount point of a file or directory using its handle.
The handle must have been open using FILE_FLAG_OPEN_REPARSE_POINT flag.
| |
GetMountPoint(String, Boolean) |
Gets the mount point of a file or directory.
| |
GetNameInformation(IntPtr, Boolean) |
Gets the name information for a file or directory handle.
This method uses NtQueryObject with ObjectNameInformation to get that information.
| |
GetNameInformation(String, Boolean) |
Gets the name information for a path.
This method uses NtQueryObject with ObjectNameInformation to get that information.
| |
GetReparsePointData(IntPtr, Boolean) |
Gets the reparse point data of a file or directory using its handle.
The handle must have been open using FILE_FLAG_OPEN_REPARSE_POINT flag.
| |
GetReparsePointData(String, Boolean) |
Gets the reparse point data of a file or directory.
| |
GetSymbolicLink(IntPtr, Boolean) |
Gets the symbolic link of a file or directory using its handle.
The handle must have been open using FILE_FLAG_OPEN_REPARSE_POINT flag.
| |
GetSymbolicLink(String, Boolean) |
Gets the symbolic link of a file or directory.
| |
GetUsn |
Gets the Update Sequence Number (USN) of a file or directory.
| |
IsPathPinned |
Determines whether the path is pinned.
| |
IsPathUnpinned |
Determines whether the path is unpinned.
| |
IsRecycleBinPath |
Determines whether a path belongs to the Windows recycle bin.
| |
OpenById |
Gets an entry using its 128-bit identifier.
| |
OpenByPath |
Opens an entry from a path.
| |
OpenReparsePointById |
Gets a reparse point entry using its 128-bit identifier.
| |
OpenReparsePointByPath |
Gets a reparse point entry using its path
| |
RenameById |
Renames an entry using its 128-bit identifier.
It can also be used to move a file if the newName parameter is set to a full file path.
Note this method cannot move from a volume to another.
| |
RenameByPath |
Renames an entry using its path.
It can also be used to move a file if the newName parameter is set to a full file path.
Note this method cannot move from a volume to another.
| |
RunById(String, Guid, ActionIntPtr, FileAccess, FileShare, Boolean) |
Runs an action on an entry handle opened using its 128-bit identifier.
| |
RunByIdT(String, Guid, FuncIntPtr, T, FileAccess, FileShare, Boolean) |
Runs a function on an entry handle opened using its 128-bit identifier.
| |
RunByPath(String, ActionIntPtr, FileMode, FileAccess, FileShare, Boolean) |
Runs an action on an entry handle opened using its path.
| |
RunByPathT(String, FuncIntPtr, T, FileMode, FileAccess, FileShare, Boolean) |
Runs a function on an entry handle opened using its path.
| |
SetAttributesById |
Sets an entry attributes using its 128-bit identifier.
| |
SetAttributesByPath |
Sets an entry attributes using its path.
| |
SetBasicInformationById(String, Guid, FileSystemBasicInfo, Boolean) |
Sets basic information of an entry using its 128-bit identifier.
If a DateTime parameter is set to DateTime.MinValue, the corresponding entry value will not be changed.
DateTime parameters kind must be either Utc or Local, but not Unspecified.
If the attributes parameter is set to 0, the corresponding entry value will not be changed. Note that some attributes (such as ReadOnly) should be changed using the SetAttributes method.
| |
SetBasicInformationById(String, Guid, DateTime, DateTime, DateTime, DateTime, FileAttributes, Boolean) |
Sets basic information of an entry using its 128-bit identifier.
If a DateTime parameter is set to DateTime.MinValue, the corresponding entry value will not be changed.
DateTime parameters kind must be either Utc or Local, but not Unspecified.
If the attributes parameter is set to 0, the corresponding entry value will not be changed. Note that some attributes (such as ReadOnly) should be changed using the SetAttributes method.
| |
SetBasicInformationByPath(String, FileSystemBasicInfo, Boolean) |
Sets basic information of an entry using its path.
If a DateTime parameter is set to DateTime.MinValue, the corresponding entry value will not be changed.
DateTime parameters kind must be either Utc or Local, but not Unspecified.
If the attributes parameter is set to 0, the corresponding entry value will not be changed. Note that some attributes (such as ReadOnly) should be changed using the SetAttributes method.
| |
SetBasicInformationByPath(String, DateTime, DateTime, DateTime, DateTime, FileAttributes, Boolean) |
Sets basic information of an entry using its path.
If a DateTime parameter is set to DateTime.MinValue, the corresponding entry value will not be changed.
DateTime parameters kind must be either Utc or Local, but not Unspecified.
If the attributes parameter is set to 0, the corresponding entry value will not be changed. Note that some attributes (such as ReadOnly) should be changed using the SetAttributes method.
| |
ToString |
Returns a String that represents this instance.
(Overrides ObjectToString.) | |
Unprotect |
Removes the ReadOnly attribute of an entry using its 128-bit identifier.
|