MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / removeIfExists

Function removeIfExists

packages/codex-native-api/src/daemon_manager.ts:1228–1237  ·  view source on GitHub ↗
(filePath: string | null)

Source from the content-addressed store, hash-verified

1226}
1227
1228async function removeIfExists(filePath: string | null): Promise<void> {
1229 if (!filePath) {
1230 return;
1231 }
1232 try {
1233 await fsp.unlink(filePath);
1234 } catch {
1235 // Ignore missing files during uninstall.
1236 }
1237}
1238
1239function assertFileExists(filePath: string | null, label: string): void {
1240 if (!filePath || !fs.existsSync(filePath)) {

Callers 1

uninstallDaemonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected