Truncation
This commit is contained in:
parent
36e7e75213
commit
d88af17c09
1 changed files with 6 additions and 0 deletions
|
@ -144,8 +144,14 @@ local function waitLoop()
|
|||
})
|
||||
)
|
||||
|
||||
-- Truncate the input file to reduce the amount of time
|
||||
-- wasted if we reopen it too early
|
||||
local inputFile = io.open(inputFilePath, "w")
|
||||
inputFile:close()
|
||||
|
||||
waiter = util.waitForChange(inputFilePath)
|
||||
|
||||
-- Write the result
|
||||
local outFile = io.open(outputFilePath, "w")
|
||||
outFile:write(table.concat(outContents, "\n"))
|
||||
outFile:close()
|
||||
|
|
Loading…
Add table
Reference in a new issue