mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-15 09:17:26 +08:00
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:
@@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user