mirror of
https://github.com/thebaer/tildes.git
synced 2018-07-20 07:15:21 +00:00
Exclude README files in directories
This commit is contained in:
parent
f1ef0a7bc8
commit
968dcb54da
2
code.go
2
code.go
@ -65,7 +65,7 @@ func mapFiles(files *[]string, users map[string]User) {
|
|||||||
fname := filepath.Base(path)
|
fname := filepath.Base(path)
|
||||||
|
|
||||||
// Exclude certain file names
|
// Exclude certain file names
|
||||||
if strings.HasPrefix(fname, ".") || strings.HasSuffix(fname, ".log") || strings.HasSuffix(fname, "~") {
|
if strings.HasPrefix(fname, ".") || strings.HasSuffix(fname, ".log") || strings.HasPrefix(fname, "README") || strings.HasSuffix(fname, "~") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user