INNER CODE UNIT · TypeScript
recurse
onejs/one · packages/lllink/src/index.ts:31
async function recurse(dir: string) {
let entries: string[]
try {
entries = await readdir(dir)
} catch {
return
}
await Promise.all(
entries.map(async (entry) => {
if (entry === IGNORE_DIR) return
const fullPath = join(dir, entry)
let entryStat
try {
entryStat = await stat(fullPath)
} catch {
return
}