1
0
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:
Matt Baer 2015-01-26 00:04:02 -05:00
parent f8558e3b30
commit 8c9c376e35

View File

@ -38,8 +38,8 @@ func findProjects() map[string]User {
uname := pparts[2] uname := pparts[2]
fname := filepath.Base(path) fname := filepath.Base(path)
// Exclude certain files // Exclude certain file names
if strings.HasPrefix(fname, ".") || strings.HasSuffix(fname, ".log") { if strings.HasPrefix(fname, ".") || strings.HasSuffix(fname, ".log") || strings.HasSuffix(fname, "~") {
continue continue
} }