Config: Show error if originals and storage path seem identical #1642

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-01-21 14:22:16 +01:00
parent 7917482580
commit 86dc89c4b9
37 changed files with 464 additions and 235 deletions

View File

@@ -110,7 +110,7 @@ func backupAction(ctx *cli.Context) error {
// Create backup directory if not exists.
if dir := filepath.Dir(indexFileName); dir != "." {
if err := os.MkdirAll(dir, fs.ModeDir); err != nil {
if err = fs.MkdirAll(dir); err != nil {
return err
}
}