Fix: incorrect thumb path detect while deleting files
This commit is contained in:
parent
32c0232105
commit
ff2dae80f0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue