Directory path resolved inside the workspace after separator normalization and workspace-boundary checks. Empty path or / is treated as ./; invalid or outside-workspace paths error.
Array table of workspace-relative path strings for direct child entries. Files and folders can both be included; entries are not sorted by this function.
Enumerate the direct child paths inside an existing workspace directory.
makefolder("examples/listing")writefile("examples/listing/config.json", "{}")makefolder("examples/listing/nested")for _, path in ipairs(listfiles("examples/listing")) do print(path)end
⌘I
Assistant
Responses are generated using AI and may contain mistakes.