Code: Select all
require 'luacom'
FSO = luacom.CreateObject('Scripting.FileSystemObject')
folder = FSO:GetFolder(fhGetContextInfo('CI_APP_DATA_FOLDER'))
for _, F in luacom.pairs(folder.SubFolders) do
print(F.Path)
end
Any ideas for getting it working in both versions, please?