mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-10 04:19:38 +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()
|
||||
|
||||
_, 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
|
||||
err = new_file.Close()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user