* Initial work on implementing File.Move with overwrite
* Add unit tests for File.Move and FileInfo.MoveTo with overloads for overwrite
* Add MoveFile overload with overwrite parameter to Unix
* Correct namespace for Unix function call
* Separate corefx-specific tests
* Move corefx-specific tests to correct ItemGroup
* * Consolidate error blocks
* Pass named argument for readability
* Remove MOVEFILE_WRITE_THROUGH
* Remove const declaration for MOVEFILE_WRITE_THROUGH since it's not used.
Commit migrated from https://github.com/dotnet/corefx/commit/40364e539572e9dad9c8a2eb165fc9af28e5664a
* Create Microsoft.Internal.IO
Includes all of Path, Directory, *Info, etc. from System.IO with targets of NetFX 4.6.1 and NetCore 2.1.
* Tweaks / minor fixes
* Remove netstandard build.
* Add package
Update to build for 4.7.2 only
* Rename folder to prepare for project rename
* Change the name to Microsoft.IO.Redist
* Namespace tweaks
* Use open key, tweak references
* More tweaks on feedback
Also grab latest build tools for 4.7.x RIDs
Commit migrated from https://github.com/dotnet/corefx/commit/1bff7880bfa949e8c5e46039808ec412640bbb5e
* MilliSeconds added
* Test Added for move operation
* LastAccessTimeTest
* avoid overflow and using both seconfs and nanoseconds of the native
* feedback addressed
* Tests fixed for CI
* Feedback addressed
* method signature changed
* removing comments
* named argument added
Commit migrated from https://github.com/dotnet/corefx/commit/510eaf10912ce5790302addb0171916b9a134000
* using utimes instead of utime
* Test for checking millisec attribute is set or not
* Documenting the values in case of the failure
* NanoSecond enabled
* feedback addressed
* int64_t added
* Fixing build on ci Osx(on which utimensat is not available)
* Minor nits done
Commit migrated from https://github.com/dotnet/corefx/commit/cd62bb271e98410319460b4ba48332416bcccf65
* Initial port of SqlFileStream
* Added SqlFileStreamTest
* Cleanup code
* Updated file paths after catchup merge.
* Added newline at the end of Strings.resx
* Fixed cosmetic changes
* Replaced null SafeHandle call
* Added headers to SqlFileStreamTest.cs
* Addressed review feedback by Stephen and Jeremy
* Fixed filename UnSupported.cs to Unsupported.cs to match case in Linux builds.
* Addressed review comments
* Made SqlFileStream netcoreapp and windows specific.
* Update EaName to include Null Terminator
* Fixed cosmetic issues
* Addressed Dan's review feedback.
Removed initially added file Interop.GetFullPathName.cs as is it no longer being used.
* Addressed Jeremy's review comments.
* Addressed Jeremy's review comments about style polish.
Commit migrated from https://github.com/dotnet/corefx/commit/2f7844a8df4fef427df1a2bc77e9f34211a720a1
* 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