Yes this did worked. I can now read the file name under the folder/iguana_training
My next step would be, say i have multiple files under the directory like nationality,race,religion,designation. I extracted the file name (Nationality) using :sub API like below.
local Dir = [[C:\Program Files\iNTERFACEWARE\Iguana\iguana_training\]]
for FileDir, FileInfo in os.fs.glob(Dir..’*.csv’) do
if FileName:sub(1,11)==’Designation’ then
<do some task>
Here I want to read only the designation file, hence i included in If loop and then do some action. But when I run this channel, all the files were read and no task is performed which is mentioned inside the loop. Though the annotations looks good and works as expected.