Signed-off-by: Marcel Klehr <mklehr@gmx.net>
$result['item_permissions'] = $node->getPermissions();
}
+ // See MOUNT_ROOT_PROPERTYNAME dav property
+ $result['is-mount-root'] = $node->getInternalPath() === '';
+ $result['mount-type'] = $node->getMountPoint()->getMountType();
+
$result['mimetype'] = $node->getMimetype();
$result['has_preview'] = $this->previewManager->isAvailable($node);
$result['storage_id'] = $node->getStorage()->getId();
* file_target: string,
* has_preview: bool,
* hide_download: 0|1,
+ * is-mount-root: bool,
* id: string,
* item_mtime: int,
* item_permissions?: int,
* label: string,
* mail_send: 0|1,
* mimetype: string,
+ * mount-type: string,
* note: string,
* parent: null,
* password?: string,
"file_target",
"has_preview",
"hide_download",
+ "is-mount-root",
"id",
"item_mtime",
"item_size",
"label",
"mail_send",
"mimetype",
+ "mount-type",
"note",
"parent",
"path",
1
]
},
+ "is-mount-root": {
+ "type": "boolean"
+ },
"id": {
"type": "string"
},
"mimetype": {
"type": "string"
},
+ "mount-type": {
+ "type": "string"
+ },
"note": {
"type": "string"
},