diff --git a/Sources/CryptomatorCloudAccess/LocalFileSystem/LocalFileSystemProvider.swift b/Sources/CryptomatorCloudAccess/LocalFileSystem/LocalFileSystemProvider.swift index 9a8e890..933dc96 100644 --- a/Sources/CryptomatorCloudAccess/LocalFileSystem/LocalFileSystemProvider.swift +++ b/Sources/CryptomatorCloudAccess/LocalFileSystem/LocalFileSystemProvider.swift @@ -102,7 +102,7 @@ public class LocalFileSystemProvider: CloudProvider { url.stopAccessingSecurityScopedResource() } } - let readingIntent = NSFileAccessIntent.readingIntent(with: url, options: .immediatelyAvailableMetadataOnly) + let readingIntent = NSFileAccessIntent.readingIntent(with: url) fileCoordinator.coordinate(with: [readingIntent], queue: queue) { error in if let error = error { CloudAccessDDLogDebug("LocalFileSystemProvider: fillCache(for: \(cloudPath.path)) failed coordinated read with error: \(error)") @@ -457,7 +457,7 @@ public class LocalFileSystemProvider: CloudProvider { private func getItemMetadata(forItemAt url: URL, parentCloudPath: CloudPath) -> Promise { CloudAccessDDLogDebug("LocalFileSystemProvider: getItemMetadata(forItemAt: \(url), parentCloudPath: \(parentCloudPath.path)) called") let promise = Promise.pending() - let readingIntent = NSFileAccessIntent.readingIntent(with: url) + let readingIntent = NSFileAccessIntent.readingIntent(with: url, options: .immediatelyAvailableMetadataOnly) fileCoordinator.coordinate(with: [readingIntent], queue: queue) { error in if let error = error { CloudAccessDDLogDebug("LocalFileSystemProvider: getItemMetadata(forItemAt: \(url), parentCloudPath: \(parentCloudPath.path)) failed coordinated read with error: \(error)")