exists
exists(
path
):Promise
<boolean
>
Defined in: .build/typescript/packages/llamaindex/src/storage/FileSystem.ts:11
Checks if a file exists. Analogous to the os.path.exists function from Python.
Parameters
Section titled “Parameters”string
The path to the file to check.
Returns
Section titled “Returns”Promise
<boolean
>
A promise that resolves to true if the file exists, false otherwise.