Skip to content

io.readdir is not iterable with ipairs #518

@XenoS-ITA

Description

@XenoS-ITA

io.readdir from the new sandboxing is not iterable with ipairs, the only way i found is to use the lines method.

example:

local files = io.readdir("@myResource/")
for file in files:lines() do
    print(file) -- Process each file
end

probably currently missing a correct implementation for ipairs and pairs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions