mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +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)) {
|
if (!fs::exists(fsPath)) {
|
||||||
fs::create_directories(fsPath);
|
fs::create_directories(fsPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void iterateTranscodeCache(Context& context, std::function<void(fs::path)> cb) {
|
static void iterateTranscodeCache(Context& context, std::function<void(fs::path)> cb) {
|
||||||
if (cb) {
|
if (cb) {
|
||||||
fs::directory_iterator end;
|
fs::directory_iterator end;
|
||||||
fs::directory_iterator file(cachePath(context));
|
fs::directory_iterator file(fs::u8path(cachePath(context)));
|
||||||
|
|
||||||
while (file != end) {
|
while (file != end) {
|
||||||
if (!is_directory(file->status())) {
|
if (!is_directory(file->status())) {
|
||||||
cb(file->path());
|
cb(file->path());
|
||||||
|
Loading…
Reference in New Issue
Block a user