MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / readSubdirs

Function readSubdirs

restored-src/src/utils/plugins/cacheUtils.ts:189–196  ·  view source on GitHub ↗
(dirPath: string)

Source from the content-addressed store, hash-verified

187}
188
189async function readSubdirs(dirPath: string): Promise<string[]> {
190 try {
191 const entries = await readdir(dirPath, { withFileTypes: true })
192 return entries.filter(d => d.isDirectory()).map(d => d.name)
193 } catch {
194 return []
195 }
196}

Callers 2

removeIfEmptyFunction · 0.85

Calls 2

filterMethod · 0.80
readdirFunction · 0.50

Tested by

no test coverage detected