diff -r a193c42fc809 -r 155bdef7fe7e src/server/webdav/operation.h --- a/src/server/webdav/operation.h Sun Feb 02 17:42:05 2020 +0100 +++ b/src/server/webdav/operation.h Sun May 31 13:08:42 2020 +0200 @@ -78,6 +78,14 @@ typedef int(*vfs_op_func)(WebdavVFSRequest *, WSBool *); typedef int(*vfs_op_finish_func)(WebdavVFSRequest *, WSBool); +typedef int(*vfs_op_child_func)( + VFSContext *, + const char *, /* href */ + const char *, /* path */ + VFSDir *, /* parent dir */ + struct stat *, /* child stat */ + void *); /* user data */ + /* * counts the number of backends */ @@ -132,6 +140,14 @@ WebdavBackend *dav, WSBool precondition); +int webdav_op_iterate_children( + VFSContext *vfs, + int depth, + const char *href, + const char *path, + vfs_op_child_func func, + void *userdata); + int webdav_vfs_stat(WebdavVFSOperation *op); int webdav_vfs_op_do(WebdavVFSOperation *op, WebdavVFSOpType type);