mirror of
https://github.com/thebaer/tildes.git
synced 2018-07-20 07:15:21 +00:00
Exclude temp *~ files
This commit is contained in:
parent
f8558e3b30
commit
8c9c376e35
4
code.go
4
code.go
@ -38,8 +38,8 @@ func findProjects() map[string]User {
|
||||
uname := pparts[2]
|
||||
fname := filepath.Base(path)
|
||||
|
||||
// Exclude certain files
|
||||
if strings.HasPrefix(fname, ".") || strings.HasSuffix(fname, ".log") {
|
||||
// Exclude certain file names
|
||||
if strings.HasPrefix(fname, ".") || strings.HasSuffix(fname, ".log") || strings.HasSuffix(fname, "~") {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user