Hide .stigore (fixes #2114)

This commit is contained in:
AudriusButkevicius 2015-08-30 12:59:01 +01:00
parent 37fb6473b3
commit cf802dc67e

View File

@ -921,7 +921,9 @@ func (m *Model) SetIgnores(folder string, content []string) error {
return fmt.Errorf("Folder %s does not exist", folder)
}
fd, err := osutil.CreateAtomic(filepath.Join(cfg.Path(), ".stignore"), 0644)
path := filepath.Join(cfg.Path(), ".stignore")
fd, err := osutil.CreateAtomic(path, 0644)
if err != nil {
l.Warnln("Saving .stignore:", err)
return err
@ -935,6 +937,7 @@ func (m *Model) SetIgnores(folder string, content []string) error {
l.Warnln("Saving .stignore:", err)
return err
}
osutil.HideFile(path)
return m.ScanFolder(folder)
}