dirs_exist
时间: 2023-08-30 21:13:01 浏览: 92
dir_exist_ok是一个参数,用于在复制目录树时控制是否忽略已存在的目录。如果dir_exist_ok参数设置为True,则会忽略已存在的目录,继续复制目录树。如果dir_exist_ok参数设置为False,则在复制目录树时如果遇到已存在的目录会引发OSError异常。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [shutil.copytree 中的dir_exist_ok会覆盖已存在目录吗](https://blog.csdn.net/weixin_35750953/article/details/129448635)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [TypeError: copytree() got an unexpected keyword argument ‘dirs_exist_ok](https://blog.csdn.net/weixin_44503976/article/details/126654548)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *3* [shutil.copytree 中的dir_exist_ok参数有什么作用](https://blog.csdn.net/weixin_42576410/article/details/129504564)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文