Giter Site home page Giter Site logo

Comments (7)

codingdave avatar codingdave commented on May 19, 2024 1

That are awesome news and a reason to change .NET 6 to 7 on my Synology box. Thanks for the information!

from copyonwrite.

danmoseley avatar danmoseley commented on May 19, 2024

If it's possible to do, we should do it in File.Copy itself. dotnet/runtime#79243 (comment)

from copyonwrite.

erikmav avatar erikmav commented on May 19, 2024

Sure, see the Microsoft.Build.CopyOnWrite SDK which copies the Copy task code and adds in this library. Extend this library to all OSes and make use of it in Copy task in MSBuild.

from copyonwrite.

codingdave avatar codingdave commented on May 19, 2024

I was very happy to find this library and after reading the Readme I was sure it will work but then I run into this exception on Linux.

Exception has occurred: CLR/System.NotImplementedException
Exception thrown: 'System.NotImplementedException' in CopyOnWrite.dll: 'The method or operation is not implemented.'

at Microsoft.CopyOnWrite.Linux.LinuxCopyOnWriteFilesystem.CopyOnWriteLinkSupportedInDirectoryTree(String rootDirectory, Boolean pathIsFullyResolved)

If the library does not have Linux support yet, it should be documented up-front.

@danmoseley adding the COW feature to File.Copy was even better as this was the first place I was checking for COW support.

from copyonwrite.

erikmav avatar erikmav commented on May 19, 2024

Added a note in README about the missing support.

from copyonwrite.

rainersigwald avatar rainersigwald commented on May 19, 2024

On Linux, you should just pass through to the BCL implementation of File.Copy(). It is copy-on-write enlightened since .NET 7: dotnet/runtime#64264.

from copyonwrite.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.