@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
11 lines • 669 B
TypeScript
import type { FileStat, PathSpec } from '../../types.ts';
import type { RedisAccessor } from '../../accessor/redis.ts';
export declare function readdir(accessor: RedisAccessor, path: PathSpec): Promise<FileStat[]>;
/**
* Every key under a directory from one scan, each as `stat` answers it,
* fetched in one pipeline; null when `path` is no directory, or when a key's
* parent is none (a file another client left without its folder), so the
* walk's readdir and stat report what is there. Mirrors Python's `tree`.
*/
export declare function tree(accessor: RedisAccessor, path: PathSpec): Promise<Map<string, FileStat> | null>;
//# sourceMappingURL=readdir.d.ts.map