Set isDir to false in core data

This commit is contained in:
Bob Sun 2017-03-02 15:32:40 +08:00
parent f3497cdc0f
commit 43b71f2704
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 2 additions and 1 deletions

View file

@ -500,6 +500,7 @@ class PasswordStore {
passwordEntity.path = "\(password.name).gpg"
passwordEntity.parent = nil
passwordEntity.synced = false
passwordEntity.isDir = false
try context.save()
print(saveURL.path)
let _ = createAddCommitInRepository(message: "Add new password by pass for iOS", fileData: encryptedData, filename: saveURL.lastPathComponent, progressBlock: progressBlock)