Fix: incorrect thumb path detect while deleting files

This commit is contained in:
HFO4 2020-03-17 16:11:11 +08:00
parent 32c0232105
commit ff2dae80f0

View file

@ -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