diff --git a/Sources/NextcloudFileProviderKit/Item/Item.swift b/Sources/NextcloudFileProviderKit/Item/Item.swift index 93d68a5..ef0497c 100644 --- a/Sources/NextcloudFileProviderKit/Item/Item.swift +++ b/Sources/NextcloudFileProviderKit/Item/Item.swift @@ -152,6 +152,9 @@ public class Item: NSObject, NSFileProviderItem { } public var fileSystemFlags: NSFileProviderFileSystemFlags { + Logger(subsystem: Logger.subsystem, category: "item").debug( + "Item \(self.filename, privacy: .public) flags: \(self.metadata.lock ? "locked" : "unlocked", privacy: .public) lockOwner: \(self.metadata.lockOwner, privacy: .public) remoteInterfaceAccountUsername: \(self.remoteInterface.account.username, privacy: .public) lockTimeOut: \(self.metadata.lockTimeOut?.description ?? "NONE" , privacy: .public)" + ) if metadata.lock, metadata.lockOwner != remoteInterface.account.username, metadata.lockTimeOut ?? Date() > Date()