Skip to content

Commit

Permalink
🎨 Support local file system sync & backup #13663
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 2, 2025
1 parent 0aed110 commit 278a8f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/model/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,13 +483,13 @@ func SetSyncProviderLocal(local *conf.Local) (err error) {
return
}
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)
err = errors.New(fmt.Sprintf(Conf.Language(77), msg))
return
}
if util.IsAbsPathInWorkspace(absPath) {
msg := fmt.Sprintf("endpoint [%s] is in workspace", local.Endpoint+" ("+absPath+")")
if util.IsAbsPathInWorkspace(absPath) || filepath.Clean(absPath) == filepath.Clean(util.WorkspaceDir) {
msg := fmt.Sprintf("endpoint [%s] is in workspace", local.Endpoint)
logging.LogErrorf(msg)
err = errors.New(fmt.Sprintf(Conf.Language(77), msg))
return
Expand Down

0 comments on commit 278a8f1

Please sign in to comment.