MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / readSubdirs

Function readSubdirs

source code/utils/plugins/cacheUtils.ts:191–198  ·  view source on GitHub ↗
(dirPath: string)

Source from the content-addressed store, hash-verified

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

Callers 2

removeIfEmptyFunction · 0.85

Calls 1

readdirFunction · 0.85

Tested by

no test coverage detected