Populate ignores upon adding a folder (fixes #996)

This commit is contained in:
Audrius Butkevicius 2014-11-22 02:19:16 +00:00
parent 37ebbb53be
commit 20dee618ea

View File

@ -1004,6 +1004,9 @@ func (m *Model) AddFolder(cfg config.FolderConfiguration) {
m.deviceFolders[device.DeviceID] = append(m.deviceFolders[device.DeviceID], cfg.ID)
}
ignores, _ := ignore.Load(filepath.Join(cfg.Path, ".stignore"), m.cfg.Options().CacheIgnoredFiles)
m.folderIgnores[cfg.ID] = ignores
m.addedFolder = true
m.fmut.Unlock()
}