MCPcopy Create free account
hub / github.com/github/copilot-sdk / tryDeleteFile

Function tryDeleteFile

nodejs/test/e2e/rpc_shell_user_requested.e2e.test.ts:63–69  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

61 }
62
63 function tryDeleteFile(filePath: string): void {
64 try {
65 rmSync(filePath, { force: true });
66 } catch {
67 // Best-effort cleanup.
68 }
69 }
70
71 it("should execute user requested shell command", { timeout: 120_000 }, async () => {
72 const session = await client.createSession({ onPermissionRequest: approveAll });

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…