Created
March 23, 2015 19:31
-
-
Save nefftd/8e78374e708e28f43921 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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