💬

Community answer

Collected from the ACE community Discord archive around 2026-07-23. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

file.find returns two tables

🌙 LuaUpdated 2 days ago•0 views
file.find("*") returns TWO tables - one of files, one of directories (both relative to sf_filedata). Assign both: local files, dirs = file.find("*").

How to list files/directories with file.find - what's the return value

file.find("*") returns TWO tables - one of files, one of directories (both relative to sf_filedata). Assign both: local files, dirs = file.find("*").

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.