afero icon indicating copy to clipboard operation
afero copied to clipboard

Copy one filesystem to another

Open purpleidea opened this issue 7 years ago • 3 comments

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

purpleidea avatar Aug 21 '17 09:08 purpleidea

Is it not simple enough to implement this with afero.Walk and a WalkFunc of your choice?

cfunkhouser avatar Aug 24 '17 19:08 cfunkhouser

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.

purpleidea avatar Aug 29 '17 16:08 purpleidea

+1 for a Sync() implementation!

paralin avatar Sep 22 '22 20:09 paralin