Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
}
/**
+ * Compute the fileId to use for dav responses
+ *
* @param int $id Id of the file returned by FileInfo::getId
+ * @since 25.0.0
*/
public static function getDavFileId(int $id): string {
$instanceId = \OC_Util::getInstanceId();
return $id . $instanceId;
}
+ /**
+ * Compute the format needed for returning permissions for dav
+ *
+ * @since 25.0.0
+ */
public static function getDavPermissions(\OCP\Files\FileInfo $info): string {
$p = '';
if ($info->isShared()) {