kirillosenkov / contentsync Goto Github PK
View Code? Open in Web Editor NEWDirectory copy/sync/mirror tool that uses file contents (not timestamps) to avoid touching identical files
License: MIT License
Directory copy/sync/mirror tool that uses file contents (not timestamps) to avoid touching identical files
License: MIT License
We have a case where we want to copy only those files directly under Source folder to Destination folder, and ignore any subfolders under Source folder. Is there a switch that supports this requirement?
Quick question about contentSync. I scanned the code and should just emperically answer my own question by trying, but i think i could miss things and that could be dangerous.
Anyway, my question is simply this:
Because you flatten all folders and subfolders into a list of files before comparing, what would happen in cases such as:
To give an example scenerio: if 2 folders were compared each having the same files; however, folder 1 had the files all in that root directory and folder 2 had them split between 2 subfoldes. Would they be deemed identical? What if main folder 2 had some of the files in both subfolders (duplicated)? would name play a role at all in these cases? or does content mean all content except the name (and no attributes of course)?
There are so many variations of examples but i will ask just one more and hope i am making sense - does the tool mirror the folder structure in the destication if you want it too... or is it just about comparing flattened structures? Or can it do either directory structure AND flattened files only?
By the way - i love that it does compare CONTENT (i have been so burned by the date being the 'master' in the past) AND that it flattens directories. Just want to ensure these details if possible.
I hope this makes sense.
Thanks a lot, Tom
contentsync . /temp/foo
didn't work (unrecognized argument /t)
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.