check: enhance check command to create cache directory if it doesn't exist

This commit is contained in:
Shivashis Padhi
2024-05-25 19:15:42 +05:30
parent 7ea508e7b8
commit 0271bb97f8
3 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
Enhancement: `check` command creates cache directory if it does not exist
If a custom cache directory was specified for the `check` command but the directory did not exist,
then `check` continued with cache disabled.
The `check` command now attempts to create the cache directory before initializing the cache.
https://github.com/restic/restic/issues/4437
https://github.com/restic/restic/pull/4805