MCPcopy
hub / github.com/coder/mux / rename

Method rename

src/node/services/memoryService.ts:267–267  ·  view source on GitHub ↗

Move/rename; creates the destination's parent directories.

(oldRelPath: string, newRelPath: string)

Source from the content-addressed store, hash-verified

265 remove(relPath: string): Promise<void>;
266 /** Move/rename; creates the destination's parent directories. */
267 rename(oldRelPath: string, newRelPath: string): Promise<void>;
268 /**
269 * Symlink-escape prevention: realpath the deepest existing ancestor of the
270 * target and require it to stay inside the (realpathed) root. Throws on escape.

Callers 15

renameMethod · 0.65
renameMethod · 0.65
cloneWithProgressMethod · 0.65
renameCorruptGoalMethod · 0.65
acquireMethod · 0.65
executeMemoryCommandFunction · 0.65

Implementers 1

LocalMemoryStoresrc/node/services/memoryService.ts

Calls

no outgoing calls

Tested by

no test coverage detected