MCPcopy Index your code
hub / github.com/cloudflare/agents / exists

Method exists

packages/shell/src/fs/interface.ts:58–58  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

56 writeFileBytes(path: string, content: Uint8Array): Promise<void>;
57 appendFile(path: string, content: string | Uint8Array): Promise<void>;
58 exists(path: string): Promise<boolean>;
59 /** Follows symlinks. Throws ENOENT if path does not exist. */
60 stat(path: string): Promise<FsStat>;
61 /** Does not follow the final symlink. Throws ENOENT if path does not exist. */

Callers 6

workers.test.tsFile · 0.65
memory.test.tsFile · 0.65
existsMethod · 0.65
workspace.test.tsFile · 0.65
existsAnyMethod · 0.65

Implementers 2

WorkspaceFileSystempackages/shell/src/workspace.ts
InMemoryFspackages/shell/src/fs/in-memory-fs.ts

Calls

no outgoing calls

Tested by 1

existsMethod · 0.52