MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / markResultBundlePathCompleted

Function markResultBundlePathCompleted

src/utils/result-bundle-path.ts:38–52  ·  view source on GitHub ↗
(resultBundlePath: string | undefined)

Source from the content-addressed store, hash-verified

36}
37
38export function markResultBundlePathCompleted(resultBundlePath: string | undefined): void {
39 if (!resultBundlePath) {
40 return;
41 }
42
43 try {
44 if (!fs.existsSync(resultBundlePath) || !fs.statSync(resultBundlePath).isDirectory()) {
45 return;
46 }
47 fs.writeFileSync(getResultBundleCompletionMarkerPath(resultBundlePath), `${Date.now()}\n`);
48 } catch (error) {
49 const message = error instanceof Error ? error.message : String(error);
50 log('warn', `Unable to mark result bundle completed at ${resultBundlePath}: ${message}`);
51 }
52}

Callers 1

createTestExecutorFunction · 0.90

Calls 4

logFunction · 0.90
existsSyncMethod · 0.80
isDirectoryMethod · 0.80

Tested by

no test coverage detected