MCPcopy Index your code
hub / github.com/coder/mux / runtimePathExists

Function runtimePathExists

src/node/services/taskService.ts:1013–1021  ·  view source on GitHub ↗
(runtime: Runtime, path: string)

Source from the content-addressed store, hash-verified

1011}
1012
1013async function runtimePathExists(runtime: Runtime, path: string): Promise<boolean> {
1014 assert(path.length > 0, "runtimePathExists: path must be non-empty");
1015 try {
1016 await runtime.stat(path);
1017 return true;
1018 } catch {
1019 return false;
1020 }
1021}
1022
1023async function readTaskBaseCommitShaByProjectPath(params: {
1024 workspaceId: string;

Callers 1

Calls 2

statMethod · 0.65
assertFunction · 0.50

Tested by

no test coverage detected