@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
16 lines • 875 B
TypeScript
import type { GDriveAccessor } from '../../accessor/gdrive.ts';
import { type PathSpec } from '../../types.ts';
import type { Handed } from '../../vfs/types.ts';
/**
* Remove an empty folder.
*
* A Drive `files.delete` on a folder removes every descendant with it, so
* this is the same request `rmR` sends and the emptiness check is the only
* thing separating them. Without it `rmdir` destroyed the whole subtree for
* every caller that does not pre-check emptiness itself, and the command
* builders are the only callers that do: FUSE, `ws.vfs` and the sandbox
* runtimes all reach the op directly. The probe is the one `rename` already
* makes before it overwrites a directory, bounded to a single entry.
*/
export declare const rmdir: (accessor: GDriveAccessor, path: PathSpec, handed?: Handed | undefined) => Promise<void>;
//# sourceMappingURL=rmdir.d.ts.map