Skip to content

Instantly share code, notes, and snippets.

@nefftd
Created March 23, 2015 19:31
Show Gist options
  • Save nefftd/8e78374e708e28f43921 to your computer and use it in GitHub Desktop.
Save nefftd/8e78374e708e28f43921 to your computer and use it in GitHub Desktop.
for dir in package.path:gmatch([^;]+) do
dir = dir:gsub('%?.*$','')
for file in lfs.dir(dir) do
print(file)
end
end
for dir in package.cpath:gmatch([^;]+) do
dir = dir:gsub('%?.*$','')
for file in lfs.dir(dir) do
print(file)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment