MCPcopy
hub / github.com/openai/codex-plugin-cc / removeFileIfExists

Function removeFileIfExists

plugins/codex/scripts/lib/state.mjs:86–90  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

84}
85
86function removeFileIfExists(filePath) {
87 if (filePath && fs.existsSync(filePath)) {
88 fs.unlinkSync(filePath);
89 }
90}
91
92export function saveState(cwd, state) {
93 const previousJobs = loadState(cwd).jobs;

Callers 1

saveStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected