mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 Notebook data may be corrupted during data synchronization https://github.com/siyuan-note/siyuan/issues/9594
This commit is contained in:
parent
a721bbe6f0
commit
70c56c8e25
24 changed files with 88 additions and 96 deletions
|
|
@ -278,9 +278,9 @@ func Upload(c *gin.Context) {
|
|||
|
||||
func getAssetsDir(boxLocalPath, docDirLocalPath string) (assets string) {
|
||||
assets = filepath.Join(docDirLocalPath, "assets")
|
||||
if !gulu.File.IsExist(assets) {
|
||||
if !filelock.IsExist(assets) {
|
||||
assets = filepath.Join(boxLocalPath, "assets")
|
||||
if !gulu.File.IsExist(assets) {
|
||||
if !filelock.IsExist(assets) {
|
||||
assets = filepath.Join(util.DataDir, "assets")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue