@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
15 lines • 761 B
TypeScript
import type { PathSpec } from '../../types.ts';
import type { RedisAccessor } from '../../accessor/redis.ts';
/**
* Remove an empty directory, mirroring the python backend.
*
* Both refusals go through the shared error helpers so they carry an
* errno. They used to be bare `Error`s whose only signal was the wording,
* which left the FUSE adapter sniffing message text to recover ENOTEMPTY
* and left every other caller -- `ws.vfs`, the sandbox runtimes -- with an
* error `classify` could not name at all. A missing directory is ENOENT,
* not ENOTDIR: the path resolves to nothing, which is also what python
* reports here.
*/
export declare function rmdir(accessor: RedisAccessor, path: PathSpec): Promise<void>;
//# sourceMappingURL=rmdir.d.ts.map