From ab4ff9d3520a830f8dd454303613932171b4b279 Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 9 Apr 2023 12:29:25 +0800 Subject: [PATCH] =?utf8?q?Fix=20=E8=87=AA=E5=8A=A8=E5=88=9B=E5=BB=BA?= =?utf8?q?=E5=BD=95=E5=88=B6=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/stream.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Reply/stream.go b/Reply/stream.go index 81f042a..af85e4e 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -21,7 +21,6 @@ import ( c "github.com/qydysky/bili_danmu/CV" F "github.com/qydysky/bili_danmu/F" - p "github.com/qydysky/part" file "github.com/qydysky/part/file" funcCtrl "github.com/qydysky/part/funcCtrl" log "github.com/qydysky/part/log" @@ -153,7 +152,7 @@ func (t *M4SStream) LoadConfig(common c.Common) (e error) { if path, err := filepath.Abs(path); err == nil { if fs, err := os.Stat(path); err != nil { if errors.Is(err, os.ErrNotExist) { - if err := p.File().NewPath(path); err != nil { + if err := os.Mkdir(path, os.ModePerm); err != nil { return errors.New(`直播流保存位置错误` + err.Error()) } } else { -- 2.39.2