Is there an easy way to copy the contents of one folder, including all subfolders, to another folder?
It seems that cp()
supported the recursive
keyword at one point, but not anymore.
Is there an easy way to copy the contents of one folder, including all subfolders, to another folder?
It seems that cp()
supported the recursive
keyword at one point, but not anymore.
Base.Filesystem.cptree("test", "test_copy")
Thanks, but when the destination folder dst
already exists, cptree()
asks me to use the keyword argument force=true
. This seems to remove the dst
folder and then recreate it, instead of simply overwriting its contents. The dst
folder contains extra files that don’t exist in src
, and I want to keep them. Is there a way to overwrite the contents of dst
without removing dst
itself and recreating it?