Skip "Inbox" during migration

No permission.
This commit is contained in:
Davide De Rosa 2019-03-11 10:12:16 +01:00
parent 87249cb8ad
commit 9005bf6c19

View File

@ -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:")