From 72d7d15adc32ee6d401f532a7d06ae6449a424f1 Mon Sep 17 00:00:00 2001 From: Nemirtingas Date: Wed, 19 Jun 2019 18:43:14 +0200 Subject: [PATCH] Added the line to push dir name on linux --- dll/local_storage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dll/local_storage.cpp b/dll/local_storage.cpp index 78d3060..3f0e5b2 100644 --- a/dll/local_storage.cpp +++ b/dll/local_storage.cpp @@ -357,6 +357,7 @@ static std::vector get_filenames_recursive(std::string base_pa path += dir_name; std::vector lower = get_filenames_recursive(path); + output.push_back(File_Data{ dir_name });// Is this needed ? Add folder name to the list of files ? std::transform(lower.begin(), lower.end(), std::back_inserter(output), [&dir_name](File_Data f) {f.name = dir_name + "/" + f.name; return f;}); } }