* Cut Strings from OSX
* unix added
* removed string overload
* Ignore case comparison added
* using equals
* Pinvoke Corrected to remove managed string allocations
* overload for span addded and memory<char>[] to store rented arrays
* Feedback addressed and Filesystem.unix.exists moved to a new file
* Comment added, brackets are removed and using stringcomparison.oridinal
Commit migrated from https://github.com/dotnet/corefx/commit/c55aa6e313e68966f5d974163614181522caed35
* Make directory enumeration consistent
Directories can disappear or be replaced with files after we find them when recursively enumerating. Fix so we don't throw in these cases.
Also make queue handling consistent between Unix/Windows. In error skipping cases we need to be sure that we don't try to process directories we fail to open but don't care about. This simplifies custom error handling.
Fix error mapping in Unix. Add tests
* Fix typo in WinRT
* Address feedback
Commit migrated from https://github.com/dotnet/corefx/commit/d3ed110eff677ceefb9346109dbd1c681e080f34
* Fix getting attributes for sharing violation files
Some files, such as the pagefile, refuse to allow you to get attributes directly.
You need to enumerate to get the attributes.
Enumerating is expensive, so we had changed from an opt-out to an opt-in. As
it took nearly a year to find this case, switching back to an opt-out with a
larger set of known cases where we get no value from trying again.
Also add an assert to flush out other error codes and scenarios.
* Skip lock test on MacOS (not supported)
* Nano was getting ERROR_NETWORK_UNREACHABLE
Commit migrated from https://github.com/dotnet/corefx/commit/31cdcaa77ab7d03a5430488e180cd1b47d0ee25e
Ran /t:GenerateReferenceSource and undid irrelevant changes, though I kept a few files where the changes were trivial (e.g. whitespace) and it seemed better to just accept the change to stay in sync with GenerateReferenceSource.
In general I only added missing overrides on non-sealed classes, but when there were already overrides included on sealed classes, I added them back for consistency.
Commit migrated from https://github.com/dotnet/corefx/commit/10aa8277de2521fb1e6a5b42d053ad8cc947be81
* Enumerating strings should retain trailing separators
This is a regression introduced by the enumeration overhaul. We didn't have tests that covered trailing separators in the specified root directory when enumerating. They should be retained as is.
Commit migrated from https://github.com/dotnet/corefx/commit/e5b4059217c9958662d8f7bc6749c8a051f55cfb
* Populate the original path when creating directories
The DirectoryInfo class should be the same when calling Directory.Create() as
it would be creating DirectoryInfo directly then calling create on it.
* Use Combine instead of Join (for NetFX)
* Fix test
The different behavior with desktop is only with the Directory.Create
path.
Commit migrated from https://github.com/dotnet/corefx/commit/2c3bdc61c1bdae804ce862d12285934acbc85bd6
* Update IRetainable, OwnedMemory, and MemoryHandle APIs
* Split OwnedMemory into MemoryManager and IMemoryOwner
* Update ReadOnlySequence, ArrayMemoryPool, and BufferSegment
* Update System.Memory and System.IO.Pipeline tests
* Temporarily skipping the failing Pipelines tests until impl is corrected.
* Update the reference assembly to match implementation and cleanup
* Update API compat baseline for UAPAOT and add GenFacadesIgnoreMissingTypes
* Fix the System.Runtime ref
* Add back the Pin methods to the uapaot api compat baseline
* Clone the API compat baseline from uapaot and add it for uap as well.
* Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview3-02630-01, preview3-26330-08, preview3-26330-06, preview3-26330-04, beta-26330-00, beta-26330-00, respectively
* Fix pipelines tests and update the api compat baseline shim for uapaot
* Add empty Unpin override to pipe pool test.
* Fix the System.Net.Http Functional tests
Commit migrated from https://github.com/dotnet/corefx/commit/f592e887e2349ed52af6a83070c42adb9d26408c
Some file systems, like procfs, can return 0 for a file's length, even though it actually contains on-demand computed contents. This breaks File.ReadAllBytes{Async}, which currently assumes that a length of 0 means the file is empty. This commit fixes it by changing the assumption to mean that a length of 0 means we can't depend on the Length and instead need to read until EOF.
Commit migrated from https://github.com/dotnet/corefx/commit/77bf4078608a5229afd3132115638b59215f478b
* Use FileSystemName in FileSystemWatcher
- Uses newer spanified version in FileSystemName
- Doesn't allow extended match chars `<`, `>`, `"` as these are legal in Unix
* Plumb through the case sensitivity
* Update tests
* Tweak test for netfx
* Tweak the comment to be a bit more readable
Commit migrated from https://github.com/dotnet/corefx/commit/fcfb556ebf99ed551c02d0146c805e792b264cf2