From 75e4efd884feb9bf581b3e59662f52226c79e8a9 Mon Sep 17 00:00:00 2001 From: Tobias Hagemann Date: Fri, 15 Mar 2024 11:04:14 +0100 Subject: [PATCH] Fixed "immediatelyAvailableMetadataOnly" removal from the wrong function --- .../LocalFileSystem/LocalFileSystemProvider.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/CryptomatorCloudAccess/LocalFileSystem/LocalFileSystemProvider.swift b/Sources/CryptomatorCloudAccess/LocalFileSystem/LocalFileSystemProvider.swift index e17d6e1..e9d6a54 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)") @@ -458,7 +458,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)")