mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-24 05:17:24 +02:00
reverted delete file creation
This commit is contained in:
parent
cbed7ae23b
commit
a61d5d32a8
@ -141,6 +141,12 @@ func (mod_info_list *ModInfoList) createMod(mod_name string, file_name string, m
|
|||||||
}
|
}
|
||||||
defer new_file.Close()
|
defer new_file.Close()
|
||||||
|
|
||||||
|
_, err = io.Copy(new_file, mod_file)
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("error on copying file to disk: %s", err)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
//reload the list
|
//reload the list
|
||||||
err = new_file.Close()
|
err = new_file.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user