Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
86
function
removeFileIfExists(filePath) {
87
if
(filePath && fs.existsSync(filePath)) {
88
fs.unlinkSync(filePath);
89
}
90
}
91
92
export
function
saveState(cwd, state) {
93
const
previousJobs = loadState(cwd).jobs;
Callers
1
saveState
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected