MCPcopy Index your code
hub / github.com/anomalyco/opencode / stat

Function stat

packages/core/src/shell.ts:62–64  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

60}
61
62function stat(file: string) {
63 return statSync(file, { throwIfNoEntry: false }) ?? undefined
64}
65
66function full(file: string) {
67 if (process.platform !== "win32") return file

Callers 6

resolveFunction · 0.70
gitbashFunction · 0.70
registerIpcHandlersFunction · 0.50
cleanupStoreFilesFunction · 0.50
deleteStoreFileIfEmptyFunction · 0.50
statsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected