Yuari
Documentation
Docs/File system/isfolder

isfolder

Returns true when the path is a directory.

Syntax

isfolder(path: string) -> boolean

Parameters

ParameterTypeDescription
pathstringA path inside the Yuari workspace.

Returns

TypeDescription
booleanTrue when the path is a directory

Description

isfolder is part of the File system library. File functions are sandboxed to the executor workspace; paths outside it are rejected.

The call is a predicate: it inspects the current state and returns a boolean without modifying anything.

Example

print(isfolder("configs"))

Notes

  • Paths are sandboxed to the executor workspace.