From 55053d116a79d681dc10d0e905371533e1a43299 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Thu, 28 Sep 2017 08:24:24 +0200 Subject: Fix not creating subdirectories on a real filesystem --- backup/restore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backup') 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 } -- cgit v1.2.3-70-g09d2