-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
On Windows if we enumerating file system we should take into account reparse points and reparse point tags too - that is symbolic links, OneDrive and AppX.
For example, attempting to read OneDrive reparse point causes an unwanted file download from the Internet. AppX reparse point would be considered like symbolic link. (It seems the last does not taken into account in Directory.Delete())
FileSystemEntry exposes FileAttributes there we can check reparse point flag. But we don't have reparse point tags.
FileSystem also exposes only FileAttributes without reparse point tags.
The request comes from PowerShell Core repo. I am trying to utilize new FileSystemEnumerable and have to use extra P/Invoke to get reparse point tags.
It will be great to have reparse point tags in FileSystemEntry and FileSystem types or another way to work with the scenarios in a Core standard way.
/cc @JeremyKuhne