Fixed filename extension bug in LruDiskCache

This commit is contained in:
casey langen 2020-10-10 19:15:22 -07:00
parent 56dccf0f5f
commit 0d11e3da12

View File

@ -55,6 +55,7 @@ static std::string tempFilename(const std::string& root, size_t id) {
static std::string finalFilename(const std::string& root, size_t id, std::string extension) {
al::replace_all(extension, "/", "-");
al::replace_all(extension, ".", "");
return root + "/" + PREFIX + "_" + std::to_string(id) + "." + extension;
}