For the complete documentation index, see llms.txt. This page is also available as Markdown.

Table.file

Table.file(path) → Promise<File>

Returns the File at a given path within a file index table. Throws a NotFoundError if there is no such file.

Parameters:

path : string The file's path within the table (e.g., images/a.png), which for most tables is simply the file name.

Returns: Promise<File>

Was this helpful?