mirror of
https://github.com/jech/galene.git
synced 2024-12-22 23:35:46 +01:00
Make Update ignore directories starting with colon.
We were already ignoring files starting with colon.
This commit is contained in:
parent
0f53bf0373
commit
3792800355
1 changed files with 9 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue