aboutsummaryrefslogtreecommitdiff
path: root/src/Storage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Storage.cpp')
-rw-r--r--src/Storage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Storage.cpp b/src/Storage.cpp
index 3ceb606..2754bc8 100644
--- a/src/Storage.cpp
+++ b/src/Storage.cpp
@@ -9,6 +9,7 @@
#include <rapidjson/writer.h>
#include <rapidjson/stringbuffer.h>
#include <unordered_set>
+#include <filesystem>
#include <pwd.h>
#include <unistd.h>
@@ -238,7 +239,7 @@ namespace QuickMedia {
void for_files_in_dir(const Path &path, FileIteratorCallback callback) {
try {
for(auto &p : std::filesystem::directory_iterator(path.data)) {
- if(!callback(p.path()))
+ if(!callback(p.path().string()))
break;
}
} catch(const std::filesystem::filesystem_error &err) {
@@ -271,7 +272,7 @@ namespace QuickMedia {
});
for(auto &p : paths) {
- if(!callback(p.path()))
+ if(!callback(p.path().string()))
break;
}
}