Fix: incorrect thumb path detect while deleting files

pull/265/head
HFO4 4 years ago
parent 32c0232105
commit ff2dae80f0

@ -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…
Cancel
Save