Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
fix: try to exclude hidden folders.
Browse files Browse the repository at this point in the history
  • Loading branch information
zx1986 authored Nov 15, 2019
1 parent e822b78 commit aadd09d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const getDirectories = fileName =>
withFileTypes: true,
})
.filter(dirent => dirent.isDirectory())
.filter(dirent => !(/(^|\/)\.[^\/\.]/g).test(dirent))
.map(dirent => dirent.name);

async function run() {
Expand Down

0 comments on commit aadd09d

Please sign in to comment.