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

No warnings when backup directory already exists #1

Closed
guimspace opened this issue Mar 29, 2019 · 1 comment
Closed

No warnings when backup directory already exists #1

guimspace opened this issue Mar 29, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@guimspace
Copy link
Owner

Bug description

There is no warning if a backup directory for target already exists.

To Reproduce

  1. Invoke fopus --dir foo/ twice in sequence

Actual behavior

Fopus creates backup directory in the first call. In the next call, it will overwrite every file from the previous backup.

Expected behavior

Warn the user about an existing backup of the same target and ask if user really wants to overwrite the backup or exit.

@guimspace guimspace added the bug Something isn't working label Mar 29, 2019
@guimspace guimspace self-assigned this Mar 29, 2019
@guimspace
Copy link
Owner Author

guimspace commented Mar 29, 2019

A fix is present in commit 1bfbfa8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant