Skip to content

Instantly share code, notes, and snippets.

@mascarenhas
Created October 22, 2009 03:41
Show Gist options
  • Save mascarenhas/215706 to your computer and use it in GitHub Desktop.
Save mascarenhas/215706 to your computer and use it in GitHub Desktop.
local iter, dir = lfs.dir('.')
local file = dir:next()
while file and file ~= 'foo' do
print(file)
file = dir:next()
end
dir:close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment