Skip to content

Commit f26f1b1

Browse files
Relloi2h3
authored andcommitted
fix: Add writing capability for directories with CK permission
Team Folders have the permission RMGCK C = may add files, and K = may add subdirectories currently they are shown as locked in VFS because current codebase expects a 'W' Signed-off-by: Rello <Rello@users.noreply.github.com>
1 parent 52acf9f commit f26f1b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/NextcloudFileProviderKit/Item/Item.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ public class Item: NSObject, NSFileProviderItem {
4949
capabilities.insert(.allowsAddingSubItems)
5050
}
5151
}
52+
if permissions.contains("CK"), metadata.directory { // Folder not changeable but adding sub-files & -folders
53+
capabilities.insert(.allowsWriting)
54+
}
5255
}
5356
// .allowsEvicting deprecated on macOS 13.0+, use contentPolicy instead
5457
if #unavailable(macOS 13.0), !metadata.keepDownloaded {

0 commit comments

Comments
 (0)