mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix read names in directory method
Signed-off-by: Pascal Bauer <pascal.bauer@rwth-aachen.de>
This commit is contained in:
parent
00ac2ee60c
commit
65f60425c9
2 changed files with 3 additions and 3 deletions
|
@ -214,7 +214,7 @@ template <class... Ts> struct overloaded : Ts... {
|
|||
template <class... Ts> overloaded(Ts...) -> overloaded<Ts...>;
|
||||
|
||||
void write_to_file(std::string data, const std::filesystem::path file);
|
||||
std::vector<std::string> read_names_in_directory(const std::string &name);
|
||||
std::vector<std::string> read_names_in_directory(const std::filesystem::path &directory);
|
||||
|
||||
namespace base64 {
|
||||
|
||||
|
|
|
@ -369,9 +369,9 @@ void write_to_file(std::string data, const std::filesystem::path file) {
|
|||
}
|
||||
|
||||
std::vector<std::string>
|
||||
read_names_in_directory(const std::filesystem::path &dir_path) {
|
||||
read_names_in_directory(const std::filesystem::path &directory) {
|
||||
std::vector<std::string> names;
|
||||
for (auto const &dir_entry : std::filesystem::directory_iterator{dir_path}) {
|
||||
for (auto const &dir_entry : std::filesystem::directory_iterator{directory}) {
|
||||
names.push_back(dir_entry.path().filename());
|
||||
}
|
||||
return names;
|
||||
|
|
Loading…
Add table
Reference in a new issue