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

Directory.get

Directory.get(path) → File | Directory | null

Returns the File or Directory at a path, relative to this directory (or absolute, if it starts with /). Paths may include . and .. segments, and a trailing slash only matches a directory.

Parameters:

path : string

Returns: a File, a Directory, or null if nothing exists at the path.

Was this helpful?