isfolder
Returns true when the path is a directory.
Syntax
isfolder(path: string) -> boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | A path inside the Yuari workspace. |
Returns
| Type | Description |
|---|---|
boolean | True 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.