aboutsummaryrefslogtreecommitdiff
path: root/backup
diff options
context:
space:
mode:
Diffstat (limited to 'backup')
-rw-r--r--backup/restore.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup/restore.go b/backup/restore.go
index 3a384a9..7624e1e 100644
--- a/backup/restore.go
+++ b/backup/restore.go
@@ -82,7 +82,7 @@ func RestoreDir(s storage.Storage, id objects.ObjectId, root fs.Dir) error {
return err
}
}
- } else if err != os.ErrNotExist {
+ } else if !os.IsNotExist(err) {
return err
}