Code Review
/
src
/
xds
/
xds-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Needs super user rights using install-agl-sdks.sh
[src/xds/xds-server.git]
/
lib
/
syncthing
/
stfolder.go
diff --git
a/lib/syncthing/stfolder.go
b/lib/syncthing/stfolder.go
index
45ac60d
..
661e19d
100644
(file)
--- a/
lib/syncthing/stfolder.go
+++ b/
lib/syncthing/stfolder.go
@@
-55,7
+55,11
@@
func (s *SyncThing) FolderChange(f xdsconfig.FolderConfig) error {
folder := config.FolderConfiguration{
ID: id,
Label: label,
folder := config.FolderConfiguration{
ID: id,
Label: label,
- RawPath: filepath.Join(s.conf.ShareRootDir, f.RelativePath),
+ RawPath: filepath.Join(s.conf.FileConf.ShareRootDir, f.RelativePath),
+ }
+
+ if s.conf.FileConf.SThgConf.RescanIntervalS > 0 {
+ folder.RescanIntervalS = s.conf.FileConf.SThgConf.RescanIntervalS
}
folder.Devices = append(folder.Devices, config.FolderDeviceConfiguration{
}
folder.Devices = append(folder.Devices, config.FolderDeviceConfiguration{