Hi.
I need to store table of all files in folder, for example /Reaper/Grooves.
Cant get this works. Can anyone help?
Code:
files_t = {}
path = reaper.GetExePath().."\\Grooves" .."\\"
for file in io.popen(path):lines() do
table.insert(files_t, file)
end
Error: "attempt to index a nil value"
I also tried this (don`t understand synthax, here could be something wrong), same error:
Code:
io.popen([[dir "]]..path..[[" /b]]):lines()
ps: is this forum с++ only, or developer forum also means scripters place (
ReaScript: API: Wish List thread, first questions of
The "how do I?" REAPER plug-in extension thread)?