Remove or rename "shares" folder in WebDAV

We need a way to remove or rename the “shares” folder that always shows up by default in the WebDAV for Personal files at https://ocis.example.org/webdav/. Is there an way to do this without modifying code in the oCIS server itself? We haven’t been able to find any obvious config for this in WebDAV Service Configuration or WebDAV Service Configuration.

Not very often used configuration but I think what you look for is FRONTEND_OCS_SHARE_PREFIX It’s in frontend service (Frontend Service Configuration) that’s why you didn’t find it in webdav. (Our webdav API is mostly living in frontend service - dont ask why ;))

Sounds like exactly what’s needed… but doesn’t seem to affect the folder name. We tried setting FRONTEND_OCS_SHARE_PREFIX=/DoNotUse and restarting oCIS but WebDAV is still giving us /Shares even with a brand new connection.

Mmh. Maybe I misunderstood what the problem is. I’m not quite sure what you meant by “WebDAV for Personal files”. Can you elaborate?

It’s the /remote.php/webdav/Shares/ path that points to the legacy shares jail. That folder is virtual and only populated by mounted / accepted shares. Seems we can work around this by using the /dav/space/{spaceid} webdav endpoint which does not contain the Shares folder.