afero
afero copied to clipboard
Copy one filesystem to another
I'd like to copy one afero filesystem to another one. Obviously allowing different backends. Is this possible with a built-in method, or do I have to write something custom?
If so, please point me to it, if not would this sort of patch be useful upstream?
Thanks
Is it not simple enough to implement this with afero.Walk and a WalkFunc of your choice?
It's not trivial, no, especially if you want "rsync like" --delete
semantics. Which is why I think it should be available in the lib.
+1 for a Sync() implementation!