diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-07-08 18:40:55 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-07-08 18:40:55 +0300 |
commit | 2fc0156944587cb4ef4d5a80269008ec0cfc3073 (patch) | |
tree | 66a09409013d0440e923b379699a3e2183efd9a2 | |
parent | cafcf11715b272d0d688b39c5400831a7899f1a7 (diff) |
update API
-rw-r--r-- | Cartfile | 2 | ||||
-rw-r--r-- | Cartfile.resolved | 2 | ||||
-rw-r--r-- | File Provider Extension/FileProviderEnumerator.swift | 7 |
3 files changed, 5 insertions, 6 deletions
@@ -1,4 +1,4 @@ -github "nextcloud/ios-communication-library" "v0.74" +github "nextcloud/ios-communication-library" "develop" github "tilltue/TLPhotoPicker" "2.0.11" github "kishikawakatsumi/UICKeyChainStore" "v2.1.2" github "MortimerGoro/MGSwipeTableCell" "1.6.8" diff --git a/Cartfile.resolved b/Cartfile.resolved index 8abced9e3..deb7621d4 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -19,7 +19,7 @@ github "malcommac/SwiftRichString" "3.7.2" github "marinofaggiana/KTVHTTPCache" "2.0.2" github "marinofaggiana/TOPasscodeViewController" "0.0.7" github "marinofaggiana/XLForm" "eb9381ad8129f60402bf412250fb31b95a628a08" -github "nextcloud/ios-communication-library" "v0.74" +github "nextcloud/ios-communication-library" "d1ffa16c6e6294713e1ad6eecb01a2eeee30db7b" github "realm/realm-cocoa" "v5.2.0" github "rechsteiner/Parchment" "v1.7.0" github "scenee/FloatingPanel" "v1.7.5" diff --git a/File Provider Extension/FileProviderEnumerator.swift b/File Provider Extension/FileProviderEnumerator.swift index 76cc0c44b..8ea396676 100644 --- a/File Provider Extension/FileProviderEnumerator.swift +++ b/File Provider Extension/FileProviderEnumerator.swift @@ -282,10 +282,9 @@ class FileProviderEnumerator: NSObject, NSFileProviderEnumerator { } NCCommunication.shared.iosHelper(fileNamePath: fileNamePath, serverUrl: serverUrl, offset: offset, limit: limit) { (account, files, errorCode, errorDescription) in - - if errorCode == 0 && files != nil && files!.count >= 1 { - - NCManageDatabase.sharedInstance.convertNCCommunicationFilesToMetadatas(files!, useMetadataFolder: false, account: account) { (metadataFolder, metadatasFolder, metadatas) in + + if errorCode == 0 { + NCManageDatabase.sharedInstance.convertNCCommunicationFilesToMetadatas(files, useMetadataFolder: false, account: account) { (metadataFolder, metadatasFolder, metadatas) in NCManageDatabase.sharedInstance.updateMetadatasServerUrl(serverUrl, account: account, metadatas: metadatas) for metadata in metadatasFolder { let serverUrl = metadata.serverUrl + "/" + metadata.fileNameView |