listfiles
Lists folder entries as sorted workspace-relative paths.
Syntax
listfiles(path: string) -> table
Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | A path inside the Yuari workspace. |
Returns
| Type | Description |
|---|---|
table | The returned collection or table. |
Description
listfiles is part of the File system library. File functions are sandboxed to the executor workspace; paths outside it are rejected.
The call is read-only: it resolves the current value when invoked and does not change the underlying state.
Example
for _, path in ipairs(listfiles("configs")) do
print(path)
end
Notes
- Paths are sandboxed to the executor workspace.