Skip to content

Commit 6aff8ee

Browse files
committed
isDirectory is not a function
1 parent 77d0245 commit 6aff8ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ try {
2222
const walkSync = (dir, filelist = []) => {
2323
fs.readdirSync(dir).forEach((file) => {
2424
const path = require("path");
25-
file.isDirectory()
25+
file.isDirectory
2626
? (filelist = walkSync(path.join(dir, file), filelist))
2727
: filelist.push(path.join(dir, file));
2828
});

0 commit comments

Comments
 (0)