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

Add a dirs_exist_ok parameter to the copytree implementation #144

Open
pjbull opened this issue May 20, 2021 · 0 comments · May be fixed by #281
Open

Add a dirs_exist_ok parameter to the copytree implementation #144

pjbull opened this issue May 20, 2021 · 0 comments · May be fixed by #281
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@pjbull
Copy link
Member

pjbull commented May 20, 2021

We could add a dirs_exist_ok parameter to copy tree. To do this, we would also need to raise on mkdir if dir exists for cloud implementations. For most clients mkdir is a no-op right now, so that logic would need to be added/tested.


It seems like shutil.copytree has a dirs_exist_ok parameter that controls this exist_ok. Do we want to mimic that interface?

https://docs.python.org/3/library/shutil.html#shutil.copytree

Originally posted by @jayqi in #142 (comment)

@pjbull pjbull added enhancement New feature or request good first issue Good for newcomers labels May 20, 2021
@drivendataorg drivendataorg deleted a comment from pallabnandi123 Apr 21, 2022
@drivendataorg drivendataorg deleted a comment from pallabnandi123 Apr 21, 2022
@klwetstone klwetstone linked a pull request Oct 24, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant