Skip to content

Commit

Permalink
Merge pull request #60 from GiovanniCardamone/dev
Browse files Browse the repository at this point in the history
1.0.23
  • Loading branch information
GiovanniCardamone authored Oct 19, 2020
2 parents 8c7a706 + 8fd082e commit 5aa3566
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ function scan(
const combinedStat = fs.statSync(combined)

if (combinedStat.isDirectory()) {
for (const entry of fs.readdirSync(combined)) {
scan(fastify, baseDir, path.join(current, entry), log)
if (!path.basename(current).startsWith('_')) {
for (const entry of fs.readdirSync(combined)) {
scan(fastify, baseDir, path.join(current, entry), log)
}
}
} else if (isAcceptableFile(combined, combinedStat)) {
autoload(fastify, combined, pathToUrl(current), log)
Expand Down

0 comments on commit 5aa3566

Please sign in to comment.