Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Kopena <tjkopena@bellerophonmobile.com>2014-03-04 01:55:28 +0400
committerspf13 <steve.francia@gmail.com>2014-03-05 07:07:40 +0400
commitd84f707da1d46b7334ff10db2443ac17a17bbff2 (patch)
treec288408369b3ac4b49f6b54195ebed51f8472e67 /source/filesystem.go
parent3a0ab5a3ddc4b8a83fce6f390be70aaa6f2cb82d (diff)
Also ignore Emacs lock & recovery files.
Diffstat (limited to 'source/filesystem.go')
-rw-r--r--source/filesystem.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/filesystem.go b/source/filesystem.go
index 96853c8dd..abec6ca6e 100644
--- a/source/filesystem.go
+++ b/source/filesystem.go
@@ -122,6 +122,10 @@ func ignoreDotFile(filePath string) bool {
return true
}
+ if base[0] == '#' {
+ return true
+ }
+
if base[len(base)-1] == '~' {
return true
}