跳到主要内容

Function: exists()

exists(path): Promise<boolean>

Checks if a file exists. Analogous to the os.path.exists function from Python.

Parameters

path: string

The path to the file to check.

Returns

Promise<boolean>

A promise that resolves to true if the file exists, false otherwise.

Source

packages/llamaindex/src/storage/FileSystem.ts:12