mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve sync provider local file system endpoint setting https://github.com/siyuan-note/siyuan/issues/13744
This commit is contained in:
parent
e9839200c0
commit
9b02cd192f
1 changed files with 7 additions and 0 deletions
|
|
@ -495,6 +495,13 @@ func SetSyncProviderLocal(local *conf.Local) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if util.IsSubPath(absPath, util.WorkspaceDir) {
|
||||||
|
msg := fmt.Sprintf("endpoint [%s] is parent of workspace", local.Endpoint)
|
||||||
|
logging.LogErrorf(msg)
|
||||||
|
err = errors.New(fmt.Sprintf(Conf.Language(77), msg))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
local.Timeout = util.NormalizeTimeout(local.Timeout)
|
local.Timeout = util.NormalizeTimeout(local.Timeout)
|
||||||
local.ConcurrentReqs = util.NormalizeConcurrentReqs(local.ConcurrentReqs, conf.ProviderLocal)
|
local.ConcurrentReqs = util.NormalizeConcurrentReqs(local.ConcurrentReqs, conf.ProviderLocal)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue