Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Add methods File.GetFileIdInfo and Directory.GetFileIdInfo to return a unique file identifier. #354

Closed
Yomodo opened this issue Jun 22, 2017 · 0 comments
Assignees
Milestone

Comments

@Yomodo
Copy link
Collaborator

Yomodo commented Jun 22, 2017

Added new methods File.GetFileId and Directory.GetFileId that returns a unique file or directory identifier that can be used to determine if two paths refer to the same directory (symbolic links and junctions) or to the same file (symbolic links or hard links). The methods are compatible with FAT, NTFS and ReFS file systems.

To support ReFS file system (Windows 8+) this identifier is composed of 64-bit volume serial number and 128-bit file system entry identifier (see WINAPI structure FILE_ID_INFO and functions GetFileInformationByHandle and GetFileInformationByHandleEx - https://msdn.microsoft.com/cs-cz/library/windows/desktop/hh802691(v=vs.85).aspx)

#311
besoft@d66de57

@Yomodo Yomodo added this to the vNext milestone Jun 22, 2017
@Yomodo Yomodo self-assigned this Jun 22, 2017
@Yomodo Yomodo changed the title Added methods File.GetFileId and Directory.GetDirectoryId to return a unique file or directory identifier. Add methods File.GetFileId and Directory.GetDirectoryId to return a unique file or directory identifier. Jun 22, 2017
@Yomodo Yomodo changed the title Add methods File.GetFileId and Directory.GetDirectoryId to return a unique file or directory identifier. Add methods File.GetFileId and Directory.GetDirectoryId to return a unique file or directory identifier. Jun 22, 2017
@Yomodo Yomodo changed the title Add methods File.GetFileId and Directory.GetDirectoryId to return a unique file or directory identifier. Add methods File.GetFileId and Directory.GetFileId to return a unique file or directory identifier. Jun 26, 2017
@Yomodo Yomodo changed the title Add methods File.GetFileId and Directory.GetFileId to return a unique file or directory identifier. Add methods File.GetFileId and Directory.GetFileId to return a unique file identifier. Jun 26, 2017
Yomodo pushed a commit that referenced this issue Jun 26, 2017
…irectoryId to return a unique file or directory identifier.

-Implemented #357: Added new Windows 10 property: FILE_DAX_VOLUME to VolumeInfo class.
-Added new Windows 10 property: FILE_DAX_VOLUME to VolumeInfo class.
-Renamed some native enums and structs to their (original) WIN32 name.
-Update some unit tests.
@Yomodo Yomodo closed this as completed Jun 26, 2017
@Yomodo Yomodo modified the milestones: vNext, Release 2.2 Jan 12, 2018
@Yomodo Yomodo changed the title Add methods File.GetFileId and Directory.GetFileId to return a unique file identifier. Add methods File.GetFileIdInfo and Directory.GetFileIdInfo to return a unique file identifier. Jan 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant