mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
🎨 Support local file system sync & backup https://github.com/siyuan-note/siyuan/pull/13663
This commit is contained in:
parent
0aed11045c
commit
278a8f127d
1 changed files with 3 additions and 3 deletions
|
|
@ -483,13 +483,13 @@ func SetSyncProviderLocal(local *conf.Local) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !gulu.File.IsExist(absPath) {
|
if !gulu.File.IsExist(absPath) {
|
||||||
msg := fmt.Sprintf("endpoint [%s] not exist", local.Endpoint+" ("+absPath+")")
|
msg := fmt.Sprintf("endpoint [%s] not exist", local.Endpoint)
|
||||||
logging.LogErrorf(msg)
|
logging.LogErrorf(msg)
|
||||||
err = errors.New(fmt.Sprintf(Conf.Language(77), msg))
|
err = errors.New(fmt.Sprintf(Conf.Language(77), msg))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if util.IsAbsPathInWorkspace(absPath) {
|
if util.IsAbsPathInWorkspace(absPath) || filepath.Clean(absPath) == filepath.Clean(util.WorkspaceDir) {
|
||||||
msg := fmt.Sprintf("endpoint [%s] is in workspace", local.Endpoint+" ("+absPath+")")
|
msg := fmt.Sprintf("endpoint [%s] is in workspace", local.Endpoint)
|
||||||
logging.LogErrorf(msg)
|
logging.LogErrorf(msg)
|
||||||
err = errors.New(fmt.Sprintf(Conf.Language(77), msg))
|
err = errors.New(fmt.Sprintf(Conf.Language(77), msg))
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue