UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

16 lines • 785 B
import type { BoxAccessor } from '../../accessor/box.ts'; import type { PathSpec } from '../../types.ts'; import type { Handed } from '../../vfs/types.ts'; import { type BoxTokenManager } from './client.ts'; export declare function rmdir(accessor: BoxAccessor, path: PathSpec, handed?: Handed): Promise<void>; /** * Delete a folder only if it is empty: Box's 409 becomes ENOTEMPTY. Mirrors * Python's `delete_empty_folder`. */ export declare function deleteEmptyFolder(tm: BoxTokenManager, folderId: string, path: PathSpec): Promise<void>; /** * Remove a file or folder; a conditional mount walks it file by file. Mirrors * Python's `rm_r`. */ export declare function rmR(accessor: BoxAccessor, path: PathSpec, handed?: Handed): Promise<void>; //# sourceMappingURL=rmdir.d.ts.map