Skip to content

Instantly share code, notes, and snippets.

@chrisdugne
Created September 23, 2018 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdugne/dc66134aa07839597d0bb459e426aade to your computer and use it in GitHub Desktop.
Save chrisdugne/dc66134aa07839597d0bb459e426aade to your computer and use it in GitHub Desktop.
list-files.lua
local lfs = require ( "lfs" )
function showFolder(folder)
print('===================== ' .. folder)
local path = system.pathForFile( folder, system.ResourceDirectory )
for file in lfs.dir ( path ) do
print (file)
end
end
showFolder('griotte/libs')
showFolder('griotte/rocks')
@Ismoh
Copy link

Ismoh commented Dec 19, 2022

What's system in your case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment