mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🧑💻 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:
parent
f88296c4d2
commit
9cff5cc235
6 changed files with 65 additions and 5 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue