@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
18 lines • 792 B
TypeScript
import type { SharePointAccessor } from '../../accessor/sharepoint.ts';
import type { PathSpec } from '../../types.ts';
/**
* Remove an empty folder.
*
* A Graph `DELETE /drives/{id}/items/{item}` removes a folder and
* everything under 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.
*
* Args:
* accessor: SharePoint accessor.
* path: folder to remove.
*/
export declare function rmdir(accessor: SharePointAccessor, path: PathSpec): Promise<void>;
//# sourceMappingURL=rmdir.d.ts.map