MCPcopy
hub / github.com/coder/mux / stat

Method stat

src/node/runtime/Runtime.ts:397–397  ·  view source on GitHub ↗

* Get file statistics * @param path Absolute or relative path to file/directory * @param abortSignal Optional abort signal for cancellation * @returns File statistics * @throws RuntimeError if path does not exist or cannot be accessed

(path: string, abortSignal?: AbortSignal)

Source from the content-addressed store, hash-verified

395 * @throws RuntimeError if path does not exist or cannot be accessed
396 */
397 stat(path: string, abortSignal?: AbortSignal): Promise<FileStat>;
398
399 /**
400 * Ensure a directory exists (mkdir -p semantics).

Callers 15

loadServicesFunction · 0.65
ensureDirectoryFunction · 0.65
ensureDirectoryFunction · 0.65
fs.test.tsFile · 0.65
isCommandAvailableFunction · 0.65
validateProjectPathFunction · 0.65
isGitRepositoryFunction · 0.65
statRegularFileFunction · 0.65
hasNonEmptyPlanFileFunction · 0.65
movePlanFileFunction · 0.65
fileExistsFunction · 0.65

Implementers 1

MultiProjectRuntimesrc/node/runtime/multiProjectRuntime.t

Calls

no outgoing calls

Tested by 8

pathExistsFunction · 0.52
statMethod · 0.52
statMethod · 0.52
statMethod · 0.52
statMethod · 0.52
bumpChatMtimeFunction · 0.52
statMethod · 0.52
pathExistsFunction · 0.52