feat: implement unified directory structure with automatic migration for CalDAV and CardDAV #4

Merged
arnef merged 4 commits from bug/3 into main 2026-08-30 12:04:13 +00:00
Showing only changes of commit 8d2d8d3972 - Show all commits
+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