listfiles
Returns the paths of every entry directly inside a folder.
Signature
listfiles(path: string): { string }Parameters
pathstringFolder to enumerate.
Returns
{ string }
Example
makefolder("configs")
writefile("configs/a.json", "{}")
writefile("configs/b.json", "{}")
for _, path in listfiles("configs") do
print(path)
end