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

Fix utils.copy_tree() to create dst if it doesn't exist #1231

Merged
merged 2 commits into from
Sep 4, 2024

Commits on Sep 3, 2024

  1. Fix utils.copy_tree() to create dst if it doesn't exist

    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 commit 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.
    simu committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    5958982 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe0da82 View commit details
    Browse the repository at this point in the history