mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Fix Transcoder not properly using a u8path.
This commit is contained in:
parent
dd61c104b1
commit
84a3a4ac02
@ -103,15 +103,13 @@ static std::string cachePath(Context& context) {
|
||||
if (!fs::exists(fsPath)) {
|
||||
fs::create_directories(fsPath);
|
||||
}
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
static void iterateTranscodeCache(Context& context, std::function<void(fs::path)> cb) {
|
||||
if (cb) {
|
||||
fs::directory_iterator end;
|
||||
fs::directory_iterator file(cachePath(context));
|
||||
|
||||
fs::directory_iterator file(fs::u8path(cachePath(context)));
|
||||
while (file != end) {
|
||||
if (!is_directory(file->status())) {
|
||||
cb(file->path());
|
||||
|
Loading…
Reference in New Issue
Block a user