Clone files on OSX-like platforms when possible, instead of copying the whole file...
authorHamish Arblaster <hamarb123@gmail.com>
Tue, 13 Jun 2023 14:58:17 +0000 (00:58 +1000)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2023 14:58:17 +0000 (16:58 +0200)
commit8fb25a8b046621ef5fe0626e043b7976a71c0670
tree875688d9d97090bebb539d9108e396d277e5185c
parent90c5f0550545f8d7cdf058377571e7b02d45f005
Clone files on OSX-like platforms when possible, instead of copying the whole file (#79243)

Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Dan Moseley <danmose@microsoft.com>
src/libraries/Common/src/Interop/OSX/Interop.libc.cs
src/libraries/System.IO.FileSystem/tests/File/Copy.cs
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/IO/FileSystem.TryCloneFile.OSX.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/IO/FileSystem.Unix.cs