diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-07-27 12:21:29 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-07-27 12:21:29 +0300 |
commit | 6a14fc4401feacd83ac736631fe770fcb98f4015 (patch) | |
tree | 612f05e2609c8a632ebdf3abaac9880aca18b457 /File Provider Extension | |
parent | 32766eb8a42d69efbb225c9c0d535caee655c4da (diff) |
coding
Diffstat (limited to 'File Provider Extension')
-rw-r--r-- | File Provider Extension/FileProviderData.swift | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/File Provider Extension/FileProviderData.swift b/File Provider Extension/FileProviderData.swift index db7e2c5e7..4f862525c 100644 --- a/File Provider Extension/FileProviderData.swift +++ b/File Provider Extension/FileProviderData.swift @@ -158,32 +158,8 @@ class fileProviderData: NSObject { // func signalEnumerator(for containerItemIdentifiers: [NSFileProviderItemIdentifier]) { - let oldListFavoriteIdentifierRank = listFavoriteIdentifierRank - listFavoriteIdentifierRank = NCManageDatabase.sharedInstance.getTableMetadatasDirectoryFavoriteIdentifierRank(account: account) currentAnchor += 1 - // (ADD) - for (identifier, _) in listFavoriteIdentifierRank { - - guard let metadata = NCManageDatabase.sharedInstance.getMetadata(predicate: NSPredicate(format: "ocId == %@", identifier)) else { continue } - guard let parentItemIdentifier = fileProviderUtility.sharedInstance.getParentItemIdentifier(metadata: metadata, homeServerUrl: homeServerUrl) else { continue } - let item = FileProviderItem(metadata: metadata, parentItemIdentifier: parentItemIdentifier) - - fileProviderSignalUpdateWorkingSetItem[item.itemIdentifier] = item - } - - // (REMOVE) - for (identifier, _) in oldListFavoriteIdentifierRank { - - if !listFavoriteIdentifierRank.keys.contains(identifier) { - - guard let metadata = NCManageDatabase.sharedInstance.getMetadata(predicate: NSPredicate(format: "ocId == %@", identifier)) else { continue } - let itemIdentifier = fileProviderUtility.sharedInstance.getItemIdentifier(metadata: metadata) - - fileProviderSignalDeleteWorkingSetItemIdentifier[itemIdentifier] = itemIdentifier - } - } - for containerItemIdentifier in containerItemIdentifiers { NSFileProviderManager.default.signalEnumerator(for: containerItemIdentifier) { error in |