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

Method realpathSync

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

Source from the content-addressed store, hash-verified

539 }
540
541 realpathSync(path: string, _options?: { encoding?: BufferEncoding }): string {
542 const { path: canonical } = canonicalizePath(path);
543 if (resolveInode(this.db, canonical) === null) {
544 throw createWorkspaceError("ENOENT", `no such path: ${canonical}`, canonical);
545 }
546 return canonical;
547 }
548
549 access(path: string, _mode?: number): Promise<void> {
550 this.accessSync(path);

Callers 2

realpathMethod · 0.95
provider.test.tsFile · 0.80

Calls 3

canonicalizePathFunction · 0.85
resolveInodeFunction · 0.85
createWorkspaceErrorFunction · 0.70

Tested by

no test coverage detected