diff --git a/Sources/NextcloudFileProviderKit/Item/Item.swift b/Sources/NextcloudFileProviderKit/Item/Item.swift index 65dcd84..91c4cfa 100644 --- a/Sources/NextcloudFileProviderKit/Item/Item.swift +++ b/Sources/NextcloudFileProviderKit/Item/Item.swift @@ -44,6 +44,10 @@ public class Item: NSObject, NSFileProviderItem { .allowsRenaming ] + if #available(macOS 11.3, *) { + directoryCapabilities.insert(.allowsExcludingFromSync) + } + // .allowsEvicting deprecated on macOS 13.0+, use contentPolicy instead if #unavailable(macOS 13.0) { directoryCapabilities.insert(.allowsEvicting)