mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
🎨 Support directly access data/public/* contents via URL link https://github.com/siyuan-note/siyuan/issues/8593
This commit is contained in:
parent
bf5caa23f8
commit
c540046b8e
2 changed files with 12 additions and 0 deletions
|
|
@ -355,6 +355,12 @@ func initPathDir() {
|
|||
if err := os.MkdirAll(emojis, 0755); nil != err && !os.IsExist(err) {
|
||||
logging.LogFatalf(logging.ExitCodeInitWorkspaceErr, "create data emojis folder [%s] failed: %s", widgets, err)
|
||||
}
|
||||
|
||||
// Support directly access `data/public/*` contents via URL link https://github.com/siyuan-note/siyuan/issues/8593
|
||||
public := filepath.Join(DataDir, "public")
|
||||
if err := os.MkdirAll(public, 0755); nil != err && !os.IsExist(err) {
|
||||
logging.LogFatalf(logging.ExitCodeInitWorkspaceErr, "create data public folder [%s] failed: %s", widgets, err)
|
||||
}
|
||||
}
|
||||
|
||||
func initMime() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue