mirror of
https://github.com/kepler155c/opus
synced 2025-01-03 20:30:28 +00:00
oops 2
This commit is contained in:
parent
08791e87a3
commit
86be65f026
@ -405,7 +405,11 @@ function Util.readFile(fname)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Util.backup(fname)
|
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
|
end
|
||||||
|
|
||||||
function Util.writeFile(fname, data)
|
function Util.writeFile(fname, data)
|
||||||
|
Loading…
Reference in New Issue
Block a user