MCPcopy Create free account
hub / github.com/wonderwhy-er/DesktopCommanderMCP / write

Method write

src/utils/files/binary.ts:45–47  ·  view source on GitHub ↗
(path: string, content: any)

Source from the content-addressed store, hash-verified

43 }
44
45 async write(path: string, content: any): Promise<void> {
46 throw new Error('Cannot write binary files directly. Use start_process with appropriate tools (Python, Node.js libraries, command-line utilities).');
47 }
48
49 async getInfo(path: string): Promise<FileInfo> {
50 const stats = await fs.stat(path);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected