isfile
Checks a workspace path.
Syntax
isfile(path: string) -> boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | A path inside the Yuari workspace. |
Returns
| Type | Description |
|---|---|
boolean | The boolean result of the check. |
Description
isfile is part of the File system library. File APIs are limited to the Yuari workspace under %LOCALAPPDATA%\Yuari\workspace; absolute paths and traversal outside it are rejected.
The call is a predicate: it inspects the current state and returns a boolean without modifying anything.
The aliases isfolder(path) resolve to the same implementation.
Example
print(isfile("config.txt"), isfolder("configs"))
Notes
- Aliases:
isfolder(path). - All paths are confined to %LOCALAPPDATA%\Yuari\workspace.