fix: update web files root to use unified path structure

This commit is contained in:
2026-08-30 13:04:40 +02:00
parent 2fd39c8180
commit 8d2d8d3972
+1 -1
View File
@@ -24,7 +24,7 @@ const maxUploadMemory = 32 << 20 // 32 MiB
// (internal/webdav) serves at /files/, so the web UI is just another view // (internal/webdav) serves at /files/, so the web UI is just another view
// onto the same files. // onto the same files.
func (s *Server) filesRoot(username string) string { func (s *Server) filesRoot(username string) string {
return filepath.Join(s.cfg.Storage.DataDir, "files", username) return filepath.Join(s.cfg.Storage.DataDir, username, "files")
} }
// sanitizeRelPath cleans a slash-separated relative path (as received from // sanitizeRelPath cleans a slash-separated relative path (as received from