FileSystemEntry Methods |
The FileSystemEntry type exposes the following members.
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.
|