Use std filesystem (#3284)

* Use std::filesystem for path names and impl
This commit is contained in:
Gabi Melman
2024-12-05 19:14:25 +02:00
committed by GitHub
parent daf1b97b8f
commit 08c727e4f8
24 changed files with 300 additions and 318 deletions

View File

@@ -2,6 +2,7 @@
#include <cstddef>
#include <string>
#include <filesystem>
std::size_t count_files(const std::string &folder);
@@ -9,9 +10,10 @@ void prepare_logdir();
std::string file_contents(const std::string &filename);
std::size_t count_lines(const std::string &filename);
//std::size_t count_lines(const std::string &filename);
std::size_t count_lines(const std::filesystem::path &filename);
void require_message_count(const std::string &filename, const std::size_t messages);
void require_message_count(const std::filesystem::path &filename, const std::size_t messages);
std::size_t get_filesize(const std::string &filename);