Allow watch of symbolic links to folders on Unix (#52679)
authorDavid CantĂș <dacantu@microsoft.com>
Wed, 26 May 2021 14:47:05 +0000 (09:47 -0500)
committerGitHub <noreply@github.com>
Wed, 26 May 2021 14:47:05 +0000 (07:47 -0700)
commit3bd75ba9f1a6a7a8727e53a1a15589ff3a974f30
treeea83607de52e9d477488f6fe876faecb7cebdd34
parente8875e309fa19cb1f7dd5601ebfdc2826a94aede
Allow watch of symbolic links to folders on Unix (#52679)

* Allow watch of symbolic links to folders on Unix

* Add logic to repeat directory tests with symlinks

* Remove whitespace

Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
* Avoid follow symlinks by default in subdirectories

* Add Symbolic Link tests

* Revert "Add logic to repeat directory tests with symlinks"

This reverts commit 5b44eb0195c2e5824ac375862765ea5a2cdeb0ad.

* Exclude test from win7 and 8.1

* Avoid running Process.Start in iOS, tvOS and MacCatalyst

* Apply suggestions from code review

Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.Linux.cs
src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.SymbolicLink.cs [new file with mode: 0644]
src/libraries/System.IO.FileSystem.Watcher/tests/System.IO.FileSystem.Watcher.Tests.csproj
src/libraries/System.IO.FileSystem.Watcher/tests/Utility/FileSystemWatcherTest.cs