don't removing destination on safecopy
This commit is contained in:
@@ -262,8 +262,6 @@ func SafeCopy(L *lua.LState) int {
|
|||||||
return 2
|
return 2
|
||||||
}
|
}
|
||||||
|
|
||||||
os.RemoveAll(newname)
|
|
||||||
|
|
||||||
dst, err := os.Create(newname)
|
dst, err := os.Create(newname)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
L.Push(lua.LFalse)
|
L.Push(lua.LFalse)
|
||||||
|
|||||||
Reference in New Issue
Block a user