lib/model: Create root directory for paused folders (fixes #4094)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4095
This commit is contained in:
Simon Frei
2017-04-23 23:50:56 +00:00
committed by Jakob Borg
parent e9f05d138f
commit 914b09fd1f
3 changed files with 24 additions and 11 deletions

View File

@@ -815,6 +815,7 @@ func syncthingMain(runtimeOptions RuntimeOptions) {
// Add and start folders
for _, folderCfg := range cfg.Folders() {
if folderCfg.Paused {
folderCfg.CreateRoot()
continue
}
m.AddFolder(folderCfg)