Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected behavior for dir.clonetree #461

Open
JonathanTaquet opened this issue Jan 31, 2024 · 1 comment
Open

unexpected behavior for dir.clonetree #461

JonathanTaquet opened this issue Jan 31, 2024 · 1 comment

Comments

@JonathanTaquet
Copy link

JonathanTaquet commented Jan 31, 2024

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 JonathanTaquet changed the title unexpeced behavior for dir.clonetree unexpected behavior for dir.clonetree Jan 31, 2024
@Tieske
Copy link
Member

Tieske commented Feb 1, 2024

That looks unexpected indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants