🧑‍💻 Kernel serve WebDAV service on path /webdav/ (#12412)

* 🎨 Add a WebDAV service to the kernel

* 🎨 Add more writable WebDAV methods
This commit is contained in:
Yingyi / 颖逸 2024-09-08 10:00:09 +08:00 committed by GitHub
parent f88296c4d2
commit 9cff5cc235
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 65 additions and 5 deletions

View file

@ -198,6 +198,7 @@ var (
WorkingDir, _ = os.Getwd()
WorkspaceDir string // 工作空间目录路径
WorkspaceName string // 工作空间名称
WorkspaceLock *flock.Flock // 工作空间锁
ConfDir string // 配置目录路径
DataDir string // 数据目录路径
@ -269,6 +270,7 @@ func initWorkspaceDir(workspaceArg string) {
os.Exit(logging.ExitCodeInitWorkspaceErr)
}
WorkspaceName = filepath.Base(WorkspaceDir)
ConfDir = filepath.Join(WorkspaceDir, "conf")
DataDir = filepath.Join(WorkspaceDir, "data")
RepoDir = filepath.Join(WorkspaceDir, "repo")