aboutsummaryrefslogtreecommitdiff
path: root/backup
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2017-09-28 08:24:24 +0200
committerLaria Carolin Chabowski <laria@laria.me>2017-10-03 15:01:38 +0200
commit55053d116a79d681dc10d0e905371533e1a43299 (patch)
treee264139fecee13da319c4759e34714976bd17894 /backup
parentfec995ab483a4fc6b2859d199d211c25b6661ff7 (diff)
downloadpetrific-55053d116a79d681dc10d0e905371533e1a43299.tar.gz
petrific-55053d116a79d681dc10d0e905371533e1a43299.tar.bz2
petrific-55053d116a79d681dc10d0e905371533e1a43299.zip
Fix not creating subdirectories on a real filesystem
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
}