don't removing destination on safecopy

This commit is contained in:
2025-08-10 17:30:11 -03:00
parent 50f874a3b8
commit a76e29572b

View File

@@ -262,8 +262,6 @@ func SafeCopy(L *lua.LState) int {
return 2
}
os.RemoveAll(newname)
dst, err := os.Create(newname)
if err != nil {
L.Push(lua.LFalse)