Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io.readdir is not iterable with ipairs #518

Open
XenoS-ITA opened this issue Jan 18, 2025 · 0 comments
Open

io.readdir is not iterable with ipairs #518

XenoS-ITA opened this issue Jan 18, 2025 · 0 comments

Comments

@XenoS-ITA
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant