Penlight icon indicating copy to clipboard operation
Penlight copied to clipboard

unexpected behavior for dir.clonetree

Open JonathanTaquet opened this issue 1 year ago • 1 comments

Hi,

when using dir.clonetree('/z/y/x', '/a/b/x', file.copy) the resulting cloned folder is /a/b/x/z/y/x, and when using dir.clonetree('/z/y/x', '/a/b', file.copy) the resulting cloned folder is /a/b/z/y/x.

Is it intended behavior ?

I would have expected dir.clonetree to act the same as cp -r, i.e. /z/y/x/foo being cloned in /a/b/x/foo in both cases.

Thanks.

JonathanTaquet avatar Jan 31 '24 21:01 JonathanTaquet

That looks unexpected indeed.

Tieske avatar Feb 01 '24 14:02 Tieske