@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
11 lines • 643 B
TypeScript
import type { BoxAccessor } from '../../accessor/box.ts';
import type { FileStat, PathSpec } from '../../types.ts';
import type { Handed } from '../../vfs/types.ts';
/**
* Move a file or folder whole; only a destination it replaces is held. A rename
* onto its own name is a no-op, as rename(2) is: nothing is sent or recorded,
* so the line keeps the version it read. Answers the item's stat where it
* landed, null when the reply names none. Mirrors Python's `rename`.
*/
export declare function rename(accessor: BoxAccessor, src: PathSpec, dst: PathSpec, handed?: Handed): Promise<FileStat | null>;
//# sourceMappingURL=rename.d.ts.map