[release/6.0] Fix detection of unsupported links (#58399)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 8 Sep 2021 04:45:29 +0000 (22:45 -0600)
committerGitHub <noreply@github.com>
Wed, 8 Sep 2021 04:45:29 +0000 (22:45 -0600)
commitc7e5075017b5efddba7c07fc0429afaceb7a0ac8
tree3704114858a182bfb35a546c4d5742aa4b9b37cc
parent596214e1fca823a8a9a8cd3d551c682143f2b151
[release/6.0] Fix detection of unsupported links (#58399)

* Fix detection of unsupported links

* Add Directory.Exists check

* Fix CI issue caused by local testing code

Co-authored-by: David Cantu <dacantu@microsoft.com>
src/libraries/System.IO.FileSystem/tests/Base/SymbolicLinks/BaseSymbolicLinks.FileSystem.cs
src/libraries/System.IO.FileSystem/tests/File/SymbolicLinks.cs
src/libraries/System.IO.FileSystem/tests/FileInfo/SymbolicLinks.cs
src/libraries/System.Private.CoreLib/src/System/IO/FileSystem.Windows.cs