Test
This commit is contained in:
@@ -201,4 +201,5 @@ function basalt.getAPI(name)
|
|||||||
return elementManager.getAPI(name)
|
return elementManager.getAPI(name)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
return basalt
|
return basalt
|
||||||
@@ -1,8 +1,16 @@
|
|||||||
|
local function ensureDirectory(path)
|
||||||
|
local dir = path:match("(.*)/[^/]*$")
|
||||||
|
if dir then
|
||||||
|
os.execute('mkdir -p "' .. dir .. '"')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local function processFile(inputFile, outputFile)
|
local function processFile(inputFile, outputFile)
|
||||||
local f = io.open(inputFile, "r")
|
local f = io.open(inputFile, "r")
|
||||||
local content = f:read("*all")
|
local content = f:read("*all")
|
||||||
f:close()
|
f:close()
|
||||||
|
|
||||||
|
ensureDirectory(outputFile)
|
||||||
|
|
||||||
local out = io.open(outputFile, "w")
|
local out = io.open(outputFile, "w")
|
||||||
out:write(content)
|
out:write(content)
|
||||||
|
|||||||
Reference in New Issue
Block a user