@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
10 lines • 549 B
TypeScript
import type { RAMAccessor } from '../../accessor/ram.ts';
import type { PathSpec } from '../../types.ts';
/**
* Copy one key onto another. A live pipe at either end is used as one: a
* pipe source is read through its reader and a pipe destination written
* into, so no bytes land in a row no reader sees (GNU: `cp <(printf x) f`
* and `cp f >(cat)` both deliver). Mirrors Python's copy.
*/
export declare function copy(accessor: RAMAccessor, src: PathSpec, dst: PathSpec, signal?: AbortSignal): Promise<void>;
//# sourceMappingURL=copy.d.ts.map