mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-02 04:52:32 +00:00
Fixed filename extension bug in LruDiskCache
This commit is contained in:
parent
56dccf0f5f
commit
0d11e3da12
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user