Add tracking a recursion depth in System.IO.FileSystem (#48148)
authorIlya <darpa@yandex.ru>
Wed, 31 Mar 2021 08:02:48 +0000 (13:02 +0500)
committerGitHub <noreply@github.com>
Wed, 31 Mar 2021 08:02:48 +0000 (01:02 -0700)
commitcee9df8b3f866edb89140bbfa9a87878ef88338c
treef10d07e45c6f091c998fefaccf3dc773b791700a
parent8cc37cb9d8405be0b15bdc8ae9cf2ddc31dbd998
Add tracking a recursion depth in System.IO.FileSystem (#48148)

* Add tracking a depth recursion in System.IO.FileSystem

* Update src/libraries/System.IO.FileSystem/src/System/IO/EnumerationOptions.cs

Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
* Fix docs

* Address feedbacks

* Fix typo

* Add MaxRecursionDepth value check

* Fix net48 build: Add string to MS.IO.Redist resx file

* Fix test and initialization.

* Address feedback

Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: David Cantu <dacantu@microsoft.com>
src/libraries/Microsoft.IO.Redist/src/Resources/Strings.resx
src/libraries/System.IO.FileSystem/ref/System.IO.FileSystem.cs
src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerator.Unix.cs
src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerator.Windows.cs
src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerator.cs
src/libraries/System.IO.FileSystem/src/System/IO/EnumerationOptions.cs
src/libraries/System.IO.FileSystem/tests/Enumeration/RecursionDepthTests.cs [new file with mode: 0644]
src/libraries/System.IO.FileSystem/tests/System.IO.FileSystem.Tests.csproj