From ff2dae80f08a8ae43bf024bc41cee03ed72d855d Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Tue, 17 Mar 2020 16:11:11 +0800 Subject: [PATCH] Fix: incorrect thumb path detect while deleting files --- pkg/filesystem/driver/local/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/filesystem/driver/local/handler.go b/pkg/filesystem/driver/local/handler.go index e0a54e5..a8229b1 100644 --- a/pkg/filesystem/driver/local/handler.go +++ b/pkg/filesystem/driver/local/handler.go @@ -91,7 +91,7 @@ func (handler Driver) Delete(ctx context.Context, files []string) ([]string, err } // 尝试删除文件的缩略图(如果有) - _ = os.Remove(value + conf.ThumbConfig.FileSuffix) + _ = os.Remove(util.RelativePath(value + conf.ThumbConfig.FileSuffix)) } return deleteFailed, retErr