isfile
Returns true when the path is a regular file.
Syntax
isfile(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 regular file |
Description
isfile 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(isfile("configs/aim.json"))
Notes
- Paths are sandboxed to the executor workspace.