mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-13 07:25:03 +01:00
Update handlers_data.go
Under Windows: no change Under Linux: Fix directory creation with no read/write permissions that failed the creation of save data dump
This commit is contained in:
@@ -240,7 +240,7 @@ func dumpSaveData(s *Session, data []byte, suffix string) {
|
||||
_, err := os.Stat(dir)
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
err = os.Mkdir(dir, os.ModeDir)
|
||||
err = os.Mkdir(dir, os.ModePerm)
|
||||
if err != nil {
|
||||
s.logger.Warn("Error dumping savedata, could not create folder")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user