Yuari
Documentation
Docs/File system/listfiles

listfiles

Lists files in a workspace directory.

Syntax

listfiles(path?: string) -> table

Parameters

ParameterTypeDescription
path?stringA path inside the Yuari workspace.

Returns

TypeDescription
tableThe returned collection or table.

Description

listfiles 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 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

  • All paths are confined to %LOCALAPPDATA%\Yuari\workspace.