🎇 use tempFile to cal md5

This commit is contained in:
微凉
2022-01-27 23:48:29 +08:00
parent bf9aa5c3d3
commit b797f4302c
5 changed files with 78 additions and 7 deletions

View File

@ -5,6 +5,7 @@ import (
"github.com/Xhofe/alist/utils"
log "github.com/sirupsen/logrus"
"io/ioutil"
"os"
)
// InitConf init config
@ -41,4 +42,8 @@ func InitConf() {
if err != nil {
log.Fatalf("update config struct error: %s", err.Error())
}
err = os.MkdirAll("data/temp", 0700)
if err != nil {
log.Fatalf("create temp dir error: %s", err.Error())
}
}