From d39d2d4e7f373bcf8f8bed9184afe7c59eb65e31 Mon Sep 17 00:00:00 2001 From: Up Date: Tue, 7 May 2024 22:39:21 +0200 Subject: [PATCH] remove leftover dir creation --- api/savedata/update.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/api/savedata/update.go b/api/savedata/update.go index 1048ca5..8bbac9f 100644 --- a/api/savedata/update.go +++ b/api/savedata/update.go @@ -20,7 +20,6 @@ package savedata import ( "fmt" "log" - "os" "strconv" "github.com/klauspost/compress/zstd" @@ -37,12 +36,6 @@ func Update(uuid []byte, slot int, save any) error { log.Print("failed to update account last activity") } - // ideally should have been done at account creation - err = os.MkdirAll(fmt.Sprintf("userdata/%x", uuid), 0755) - if err != nil && !os.IsExist(err) { - return fmt.Errorf(fmt.Sprintf("failed to create userdata folder: %s", err)) - } - switch save := save.(type) { case defs.SystemSaveData: // System if save.TrainerId == 0 && save.SecretId == 0 {