Skip to content

Commit 1ecb732

Browse files
committed
chore: also skip .git in preOrderDirectoryTraverse
for consistency
1 parent 4e8ef03 commit 1ecb732

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/directoryTraverse.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import * as path from 'node:path'
33

44
export function preOrderDirectoryTraverse(dir, dirCallback, fileCallback) {
55
for (const filename of fs.readdirSync(dir)) {
6+
if (filename === '.git') {
7+
continue
8+
}
69
const fullpath = path.resolve(dir, filename)
710
if (fs.lstatSync(fullpath).isDirectory()) {
811
dirCallback(fullpath)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy