Skip to content

Commit ab847ad

Browse files
committed
fix bug about skip hidden directories
1 parent bbd606c commit ab847ad

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

notebookgen.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ function walk(_path, depth) {
1111
var ans = "";
1212
depth = Math.min(depth, section.length - 1);
1313
fs.readdirSync(_path).forEach(function (file) {
14+
if (file.startsWith(".")) {
15+
return; // hidden directory
16+
}
1417
var f = path.resolve(_path, file);
1518
var stat = fs.lstatSync(f);
1619
if (stat.isDirectory())

0 commit comments

Comments
 (0)