The problem that i identified was when specifying the current dir - i.e. . or .\ - as the db dir.
Since it doesn't make sense to backup the current working directory, i've added a check which forbids this and suggests the user to use a specific sub-directory; this is the user error message that it prints:
cannot backup the current directory, please specify a subdirectory, for example ./db
@vchain-us-mgmt if you want to test before the fix gets into the master branch, please use the fix/backup-current-dir feature branch and let me know your opinion.
The problem that i identified was when specifying the current dir - i.e.
.
or.\
- as the db dir. Since it doesn't make sense to backup the current working directory, i've added a check which forbids this and suggests the user to use a specific sub-directory; this is the user error message that it prints:@vchain-us-mgmt if you want to test before the fix gets into the
master
branch, please use thefix/backup-current-dir
feature branch and let me know your opinion.