Coder Social home page Coder Social logo

libfilecopy's Introduction

libfilecopy

Copying files is a deceptively complicated task -- even when copying only a
single file-system object, copying extended attributes and ACLs mean it's not
simply a matter of open-open-read-write-close-close.  Especially with ACLs,
since inherited entries can complicate things immensely.

filecopy() here is inspired by Darwin's copyfile() routine.  Since it's not
compatible with it, I changed the name, but I may try to write a stub for the
simple cases later on.  Right now, the main lack is the serialization (packing
and unpacking).  (Note:  at no point with filecopy's serialization be compatible
with copyfile's.  The latter uses the AppleDouble format, which is arcane and
cannot be generated while streaming.  I'll go with a simple custom format, or
possibly simply use tar's format and attach semantics.)

treecopy() does recursive copies.  This is where the real complication in
copying comes out, because of inherited ACLs.

This is very new code, and has bugs and limitations.  They'll be worked on.

libfilecopy's People

Contributors

kithrup avatar

Watchers

Mike Reynolds avatar William Grzybowski avatar Dru Lavigne avatar James Cloos avatar Timur Bakeyev avatar Erin Clark avatar Kris Moore avatar  avatar Thibault Zanini avatar iX Auto Commit Bot avatar Eric Turgeon avatar  avatar Corey Vixie avatar Marcelo Araujo avatar Jakub Klama avatar  avatar Nick "darkfiberiru" Wolff avatar petesouth avatar  avatar  avatar Chris Torek avatar Tim Moore avatar sonicaj avatar Bonnie avatar  avatar

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.