MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / existsAndHasContent

Function existsAndHasContent

scripts/codex-worktree-cache.mjs:257–267  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

255}
256
257function existsAndHasContent(path) {
258 try {
259 const stats = statSync(path);
260 if (stats.isDirectory()) {
261 return readdirSync(path).length > 0;
262 }
263 return stats.size > 0;
264 } catch {
265 return false;
266 }
267}
268
269function repoRoot() {
270 const result = spawnSync("git", ["rev-parse", "--show-toplevel"], {

Callers 4

hydrateEntriesFunction · 0.70
saveEntriesFunction · 0.70
printStatusFunction · 0.70
findHydrationSourceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected