Skip to content

Commit

Permalink
Allow excluding directory from sync
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
  • Loading branch information
claucambra committed Oct 30, 2024
1 parent 539383c commit 0781cd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/NextcloudFileProviderKit/Item/Item.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0781cd5

Please sign in to comment.