diff --git a/src/services/dav/base.ts b/src/services/dav/base.ts index 3ebe7ae7..c991421f 100644 --- a/src/services/dav/base.ts +++ b/src/services/dav/base.ts @@ -62,6 +62,7 @@ export async function getFiles(photos: IPhoto[]): Promise { mime: photo.mimetype, hasPreview: true, etag: photo.etag, + permissions: "RWD", } as IFileInfo; }) ); diff --git a/src/types.ts b/src/types.ts index 13c687eb..c68c1d14 100644 --- a/src/types.ts +++ b/src/types.ts @@ -19,6 +19,8 @@ export type IFileInfo = { flag?: number; /** MIME type of file */ mime?: string; + /** WebDAV permissions string */ + permissions?: string; }; export type IDay = {