1
0
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:
Matt Baer 2015-02-02 16:18:49 -05:00
parent f1ef0a7bc8
commit 968dcb54da

View File

@ -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
} }