Skip to content

Commit

Permalink
Remove "immediatelyAvailableMetadataOnly" from "getItemMetadata"
Browse files Browse the repository at this point in the history
  • Loading branch information
iammajid committed Mar 8, 2024
1 parent 2fa650a commit 3b18398
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public class LocalFileSystemProvider: CloudProvider {
private func getItemMetadata(forItemAt url: URL, parentCloudPath: CloudPath) -> Promise<CloudItemMetadata> {
CloudAccessDDLogDebug("LocalFileSystemProvider: getItemMetadata(forItemAt: \(url), parentCloudPath: \(parentCloudPath.path)) called")
let promise = Promise<CloudItemMetadata>.pending()
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: getItemMetadata(forItemAt: \(url), parentCloudPath: \(parentCloudPath.path)) failed coordinated read with error: \(error)")
Expand Down

0 comments on commit 3b18398

Please sign in to comment.