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

Function isDirEmptySync

src/utils/fsOperations.ts:558–562  ·  view source on GitHub ↗
(dirPath)

Source from the content-addressed store, hash-verified

556 },
557
558 isDirEmptySync(dirPath) {
559 using _ = slowLogging`fs.isDirEmptySync(${dirPath})`
560 const files = this.readdirSync(dirPath)
561 return files.length === 0
562 },
563
564 rmdirSync(dirPath) {
565 using _ = slowLogging`fs.rmdirSync(${dirPath})`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected