Skip to content

Commit 998cd74

Browse files
fix read names in directory method
Signed-off-by: Pascal Bauer <pascal.bauer@rwth-aachen.de>
1 parent a5bb0ce commit 998cd74

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

common/include/villas/utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ template <class... Ts> struct overloaded : Ts... {
213213
template <class... Ts> overloaded(Ts...) -> overloaded<Ts...>;
214214

215215
void write_to_file(std::string data, const std::filesystem::path file);
216-
std::vector<std::string> read_names_in_directory(const std::string &name);
216+
std::vector<std::string> read_names_in_directory(const std::filesystem::path &directory);
217217

218218
namespace base64 {
219219

common/lib/utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,9 @@ void write_to_file(std::string data, const std::filesystem::path file) {
369369
}
370370

371371
std::vector<std::string>
372-
read_names_in_directory(const std::filesystem::path &dir_path) {
372+
read_names_in_directory(const std::filesystem::path &directory) {
373373
std::vector<std::string> names;
374-
for (auto const &dir_entry : std::filesystem::directory_iterator{dir_path}) {
374+
for (auto const &dir_entry : std::filesystem::directory_iterator{directory}) {
375375
names.push_back(dir_entry.path().filename());
376376
}
377377
return names;

0 commit comments

Comments
 (0)