MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / deleteFileIfExists

Function deleteFileIfExists

src/test/helpers.ts:1199–1203  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

1197}
1198
1199export function deleteFileIfExists(filePath: string) {
1200 if (fs.existsSync(filePath)) {
1201 fs.unlinkSync(filePath);
1202 }
1203}
1204
1205export async function captureDebugSessionCustomEvents(startDebug: () => void, expectMultipleSessions = false): Promise<vs.DebugSessionCustomEvent[]> {
1206 let totalSessionsStarted = 0;

Callers 3

commands.test.tsFile · 0.90
commands.test.tsFile · 0.90
prepareHasRunFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected