From 375799fa79d1af76f33299acc20a11a167a021f8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 17 Aug 2023 12:32:50 +0200 Subject: project: restructure libraries and build env --- source/lib/include/wanda/filesystem.hpp | 39 --------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 source/lib/include/wanda/filesystem.hpp (limited to 'source/lib/include/wanda/filesystem.hpp') diff --git a/source/lib/include/wanda/filesystem.hpp b/source/lib/include/wanda/filesystem.hpp deleted file mode 100644 index 1975bc5..0000000 --- a/source/lib/include/wanda/filesystem.hpp +++ /dev/null @@ -1,39 +0,0 @@ -/** - * @file filesystem.hpp - * @author Felix Morgner (felix.morgner@gmail.com) - * @since 1.0.0 - */ - -#ifndef WANDA_FILESYSTEM_HPP -#define WANDA_FILESYSTEM_HPP - -#include -#include -#include - -namespace wanda -{ - /** - * @brief Covenience alias for path lists - */ - using path_list = std::vector; - - /** - * @brief The default scan filter, allowing only regular files to pass - */ - constexpr inline auto default_filter = [](std::filesystem::path const & path) { - return is_regular_file(path); - }; - - /** - * @brief Scan the given folder for files - */ - std::optional scan(std::filesystem::path folder, bool(filter)(std::filesystem::path const &) = default_filter); - - /** - * @brief Pick a random path from the given list - */ - std::filesystem::path random_pick(path_list const & paths); -} // namespace wanda - -#endif \ No newline at end of file -- cgit v1.2.3