You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps this should be considered holistically as part of .Net 7's improved and more integrated support of file system links into various APIs, but at the least it would be nice to add:
publicclassEnumerationOptions{publicboolIgnoreUnresolvableLinkTargets{get;set;}// when false preserves current (DotNet 6) behavior, i.e. throws DirectoryNotFoundException when target cannot be found}
to prevent throwing of DirectoryNotFoundException when a symlink / junction is encountered during enumeration which has invalid (non-existing) target, as often it is valuable to continue enumeration regardless, plus it will parallel existing IgnoreInaccessible option.
The text was updated successfully, but these errors were encountered:
Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.
Issue Details
Perhaps this should be considered holistically as part of .Net 7's improved and more integrated support of file system links into various APIs, but at the least it would be nice to add:
publicclassEnumerationOptions{publicboolIgnoreUnresolvableLinkTargets{get;set;}// when false preserves current (DotNet 6) behavior, i.e. throws DirectoryNotFoundException when target cannot be found}
to prevent throwing of DirectoryNotFoundException when a symlink / junction is encountered during enumeration which has invalid (non-existing) target, as often it is valuable to continue enumeration regardless, plus it will parallel existing IgnoreInaccessible option.
Perhaps this should be considered holistically as part of .Net 7's improved and more integrated support of file system links into various APIs, but at the least it would be nice to add:
to prevent throwing of
DirectoryNotFoundException
when a symlink / junction is encountered during enumeration which has invalid (non-existing) target, as often it is valuable to continue enumeration regardless, plus it will parallel existingIgnoreInaccessible
option.The text was updated successfully, but these errors were encountered: