request _: NSFileProviderRequest,
completionHandler: @escaping (NSFileProviderItem?, Error?) -> Void
) -> Progress {
- if let item = Item.storedItem(identifier: identifier, usingKit: ncKit) {
+ if let item = Item.storedItem(identifier: identifier, remoteInterface: ncKit) {
completionHandler(item, nil)
} else {
completionHandler(nil, NSFileProviderError(.noSuchItem))
return Progress()
}
- guard let item = Item.storedItem(identifier: itemIdentifier, usingKit: ncKit) else {
+ guard let item = Item.storedItem(identifier: itemIdentifier, remoteInterface: ncKit) else {
Logger.fileProviderExtension.error(
"""
Not fetching contents for item: \(itemIdentifier.rawValue, privacy: .public)
contents: url,
request: request,
domain: self.domain,
- ncKit: ncKit,
+ remoteInterface: ncKit,
ncAccount: ncAccount,
progress: progress
)
return Progress()
}
- guard let existingItem = Item.storedItem(identifier: identifier, usingKit: ncKit) else {
+ guard let existingItem = Item.storedItem(identifier: identifier, remoteInterface: ncKit) else {
Logger.fileProviderExtension.error(
"Not modifying item: \(ocId, privacy: .public) as item not found."
)
return Progress()
}
-
- guard let item = Item.storedItem(identifier: identifier, usingKit: ncKit) else {
+ guard let item = Item.storedItem(identifier: identifier, remoteInterface: ncKit) else {
Logger.fileProviderExtension.error(
"Not deleting item \(identifier.rawValue, privacy: .public), item not found"
)
return Enumerator(
enumeratedItemIdentifier: containerItemIdentifier,
ncAccount: ncAccount,
- ncKit: ncKit,
+ remoteInterface: ncKit,
domain: domain,
fastEnumeration: config.fastEnumerationEnabled
)