llamaindex
Version:
<p align="center"> <img height="100" width="100" alt="LlamaIndex logo" src="https://ts.llamaindex.ai/square.svg" /> </p> <h1 align="center">LlamaIndex.TS</h1> <h3 align="center"> Data framework for your LLM application. </h3>
13 lines (12 loc) • 501 B
TypeScript
/**
* Checks if a file exists.
* Analogous to the os.path.exists function from Python.
* @param path The path to the file to check.
* @returns A promise that resolves to true if the file exists, false otherwise.
*/
export declare function exists(path: string): Promise<boolean>;
/**
* Recursively traverses a directory and yields all the paths to the files in it.
* @param dirPath The path to the directory to traverse.
*/
export declare function walk(dirPath: string): AsyncIterable<string>;