1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 08:35:57 +01:00

Make Update ignore directories starting with colon.

We were already ignoring files starting with colon.
This commit is contained in:
Juliusz Chroboczek 2024-02-13 22:02:57 +01:00
parent 0f53bf0373
commit 3792800355

View file

@ -1340,6 +1340,14 @@ func Update() {
return nil
}
if d.IsDir() {
base := filepath.Base(path)
if base[0] == '.' {
log.Printf(
"Ignoring group directory %v",
path,
)
return fs.SkipDir
}
return nil
}
filename, err := filepath.Rel(Directory, path)
@ -1356,7 +1364,7 @@ func Update() {
}
base := filepath.Base(filename)
if base[0] == '.' {
log.Printf("Group file %v ignored", filename)
log.Printf("Ignoring group file %v", filename)
return nil
}
name := strings.TrimSuffix(filename, ".json")