1
0
mirror of https://github.com/kepler155c/opus synced 2025-01-01 03:10:28 +00:00
This commit is contained in:
kepler155c@gmail.com 2019-03-12 02:00:07 -04:00
parent 08791e87a3
commit 86be65f026

View File

@ -405,7 +405,11 @@ function Util.readFile(fname)
end
function Util.backup(fname)
fs.copy(fname, fname .. '.bak')
local backup = fname .. '.bak'
if backup then
fs.delete(backup)
end
fs.copy(fname, backup)
end
function Util.writeFile(fname, data)