Replace Interop.ReadDir.cs with Interop.ReadDir.cs from System.IO.FileSystem (dotnet...
authorEgor Bogatov <egorbo@gmail.com>
Fri, 28 Dec 2018 18:58:42 +0000 (21:58 +0300)
committerJan Kotas <jkotas@microsoft.com>
Fri, 28 Dec 2018 18:58:42 +0000 (08:58 -1000)
commit33712dd9680b82854087ef54f7fdec1c3c5e6e69
tree37e78ae5449df45f27b1ace5b3a926023a750768
parent05842cfdbedd769499a3a1c660ed5465dc7d7c0c
Replace Interop.ReadDir.cs with Interop.ReadDir.cs from System.IO.FileSystem (dotnet/coreclr#21622)

* Use Interop.ReadDir.cs from FileSystem (corefx)

* Use ArrayPool

* Remove ReadBufferSize (and static cctor)

* use NameBufferSize for 256 const

* Delete ReadDir and SafeDirectoryHandle.Unix.cs

* Introduce GetDirectoryEntryFullPath, remove uint casts

* Refactor EnumerateFilesRecursively

Commit migrated from https://github.com/dotnet/coreclr/commit/d70425ced81589ec5fe243da4425d7fc3426314c
src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.ReadDir.cs
src/libraries/System.Private.CoreLib/src/Microsoft/Win32/SafeHandles/SafeDirectoryHandle.Unix.cs [deleted file]
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/TimeZoneInfo.Unix.cs