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

feat: Leave pre-existing files unchanged #429

Closed
parekh0711 opened this issue Jul 19, 2021 · 2 comments
Closed

feat: Leave pre-existing files unchanged #429

parekh0711 opened this issue Jul 19, 2021 · 2 comments
Assignees

Comments

@parekh0711
Copy link

Is your feature request related to a problem? Please describe.
If copier is generating a project at /x/y/z location, and it fails because of some reason, it removes all the files it had generated as well as the directory's pre existing contents.
This can be problematic if the directory contained files that were important.
In my case, I misunderstood the destination argument to be the destination directory, and copier ended up nuking my entire parent directory. This was of course, due to my misunderstanding; but this behaviour may not be the best solution.

Describe the solution you'd like
Copier should not delete any directories/files that it did not create on failures.

@drts01
Copy link
Contributor

drts01 commented Jul 20, 2021

is this a duplicate of #262 ?

@yajo
Copy link
Member

yajo commented Jul 22, 2021

Yes, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants