-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Proposed Changes Kapitan's `utils.copy_tree()` calls `shutil.copytree()` which will create the destination directory if it doesn't exist yet. However, currently, `utils.copy_tree()` doesn't support this case and will raise a `SafeCopyError` when the destination directory doesn't exist. This PR adjusts the implementation to only raise a `SafeCopyError` when the destination exists and isn't a directory and will let `shutil.copytree()` create the destination if the destination doesn't exist at all. ## Docs and Tests * [x] Tests added * [x] Updated documentation
- Loading branch information
Showing
3 changed files
with
53 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters