working commit

This commit is contained in:
2026-02-20 19:08:26 +02:00
parent f973293315
commit 3220e2d78f
32 changed files with 195 additions and 213 deletions
+4 -3
View File
@@ -20,7 +20,8 @@ import (
"path/filepath"
"mstore/app/logger"
"mstore/pkg/uuid"
"mstore/pkg/auxid"
)
const (
@@ -80,8 +81,8 @@ func (store *Storage) WriteTempFile(source io.Reader) (string, int64, string, er
var size int64
var csum string
tmpname := string(uuid.NewUUID())
tmpname = fmt.Sprintf("file-%s.tmp", tmpname)
tmpname := fmt.Sprintf("file-%d-%d.tmp", auxid.NewID(), auxid.NewID())
tmppath := store.makeTmppath(tmpname)
tmpdirpath := store.makeTmpsubdir()