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
local fmt = string.format | |
-- Iterator that splits a string o a given delimiter | |
local function split(str, delim) | |
delim = delim or "%s" | |
return string.gmatch(str, fmt('[^%s]+', delim)) | |
end | |
-- Find the proper directory separator depending | |
-- on lua installation or OS. |