MCPcopy
hub / github.com/jvilk/BrowserFS / rename

Method rename

src/core/file_system.ts:803–810  ·  view source on GitHub ↗
(oldPath: string, newPath: string, cb: BFSOneArgCallback)

Source from the content-addressed store, hash-verified

801 }
802
803 public rename(oldPath: string, newPath: string, cb: BFSOneArgCallback): void {
804 try {
805 this.renameSync(oldPath, newPath);
806 cb();
807 } catch (e) {
808 cb(e);
809 }
810 }
811
812 public stat(p: string, isLstat: boolean | null, cb: BFSCallback<Stats>): void {
813 try {

Callers

nothing calls this directly

Calls 2

cbFunction · 0.85
renameSyncMethod · 0.65

Tested by

no test coverage detected