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

Add an option for ignoring errors in backing up #4

Open
jwodder opened this issue Dec 22, 2023 · 0 comments
Open

Add an option for ignoring errors in backing up #4

jwodder opened this issue Dec 22, 2023 · 0 comments
Labels
enhancement New feature or request therefor under consideration Dev has not yet decided whether or how to implement

Comments

@jwodder
Copy link
Owner

jwodder commented Dec 22, 2023

Give InPlace a method (named ignore_backup_error()?) for setting a flag, the default value of which is false. If this flag is set to true, then when InPlaceFile::save() is called, if moving the edited file to the backup path fails, the method will ignore the error and continue with persisting the temporary file.

  • Should the error be reported to the user somehow?
@jwodder jwodder added enhancement New feature or request therefor under consideration Dev has not yet decided whether or how to implement labels Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request therefor under consideration Dev has not yet decided whether or how to implement
Projects
None yet
Development

No branches or pull requests

1 participant