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

Directory.list

Directory.list([maxResults, { mode, recursive }]) → Array<File | Directory>

Lists the directory's contents.

Parameters:

maxResults : number, optional The maximum number of results to return.

mode : 'all' | 'files' | 'directories', default 'all' Which kinds of entries to return.

recursive : boolean, default false Whether to also list the contents of all subdirectories.

Returns: Array<File | Directory>

Was this helpful?