MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / checkDisk

Function checkDisk

packages/cli/src/commands/doctor.ts:120–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120function checkDisk(): CheckResult {
121 const freeMb = getFreeDiskMb(".");
122 if (freeMb === null) {
123 return { ok: true, detail: "Unable to check" };
124 }
125 const freeGb = (freeMb / 1024).toFixed(1);
126 if (freeMb < 1024) {
127 return {
128 ok: false,
129 detail: `${freeGb} GB free`,
130 hint: "Low disk space — renders produce large temp files.",
131 };
132 }
133 return { ok: true, detail: `${freeGb} GB free` };
134}
135
136function checkEnvironment(): CheckResult {
137 const sys = getSystemMeta();

Callers

nothing calls this directly

Calls 1

getFreeDiskMbFunction · 0.85

Tested by

no test coverage detected