ignore files starting with a dot (#1971)

macOS creates metadata files named `.DS_Store`. The script incorrect tries to read it with a `.md` extension.  By excluding all files that start with a dot we can prevent this.
This commit is contained in:
Koen Punt
2017-06-24 02:19:13 +02:00
parent 6ac778fa01
commit d16e7e5297

View File

@@ -9,7 +9,7 @@ function crawl(location) {
var stat = fs.statSync(join(location, name));
if (stat.isDirectory()) {
crawl(join(location, name));
} else {
} else if (name[0] !== '.') {
files.push(join(location, name));
}
});