drivendataorg/cloudpathlib
Add a `dirs_exist_ok` parameter to the `copytree` implementation
开放
#144 创建于 2021年5月20日
enhancementgood first issue
仓库指标
- 星标
- (624 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
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 https://github.com/drivendataorg/cloudpathlib/pull/142#discussion_r634894797