freenas / libfilecopy Goto Github PK
View Code? Open in Web Editor NEWA library to copy filesystem objects (data and metadata).
License: BSD 3-Clause "New" or "Revised" License
A library to copy filesystem objects (data and metadata).
License: BSD 3-Clause "New" or "Revised" License
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.