MCPcopy Create free account
hub / github.com/freecodexyz/free-code / readSubdirs

Function readSubdirs

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 1

readdirFunction · 0.85

Tested by

no test coverage detected