From 9005bf6c199db6731baa77f331afa0f0d528e4c5 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Mon, 11 Mar 2019 10:12:16 +0100 Subject: [PATCH] Skip "Inbox" during migration No permission. --- Passepartout/Sources/Model/TransientStore.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Passepartout/Sources/Model/TransientStore.swift b/Passepartout/Sources/Model/TransientStore.swift index 2b64a25c..78e0aa18 100644 --- a/Passepartout/Sources/Model/TransientStore.swift +++ b/Passepartout/Sources/Model/TransientStore.swift @@ -97,6 +97,9 @@ class TransientStore { let fm = FileManager.default do { for c in try fm.contentsOfDirectory(atPath: oldDocumentsURL.path) { + guard c != "Inbox" else { + continue + } let old = oldDocumentsURL.appendingPathComponent(c) let new = newDocumentsURL.appendingPathComponent(c) log.verbose("Move:")