MCPcopy Create free account
hub / github.com/cloudflare/computer / realpath

Method realpath

packages/dofs/src/provider.ts:537–539  ·  view source on GitHub ↗
(path: string, _options?: { encoding?: BufferEncoding })

Source from the content-addressed store, hash-verified

535 }
536
537 realpath(path: string, _options?: { encoding?: BufferEncoding }): Promise<string> {
538 return Promise.resolve(this.realpathSync(path));
539 }
540
541 realpathSync(path: string, _options?: { encoding?: BufferEncoding }): string {
542 const { path: canonical } = canonicalizePath(path);

Callers

nothing calls this directly

Calls 2

realpathSyncMethod · 0.95
resolveMethod · 0.80

Tested by

no test coverage detected