aboutsummaryrefslogtreecommitdiff
path: root/source/lib/include/wanda/filesystem.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2023-08-17 12:32:50 +0200
committerFelix Morgner <felix.morgner@gmail.com>2023-08-17 12:32:50 +0200
commit375799fa79d1af76f33299acc20a11a167a021f8 (patch)
tree8f91b982ec96225c33a2f4871730ababffe5cab0 /source/lib/include/wanda/filesystem.hpp
parentaf471b9b780869915d3217b228e24d025892de47 (diff)
downloadwanda-375799fa79d1af76f33299acc20a11a167a021f8.tar.xz
wanda-375799fa79d1af76f33299acc20a11a167a021f8.zip
project: restructure libraries and build env
Diffstat (limited to 'source/lib/include/wanda/filesystem.hpp')
-rw-r--r--source/lib/include/wanda/filesystem.hpp39
1 files changed, 0 insertions, 39 deletions
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 <filesystem>
-#include <optional>
-#include <vector>
-
-namespace wanda
-{
- /**
- * @brief Covenience alias for path lists
- */
- using path_list = std::vector<std::filesystem::path>;
-
- /**
- * @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<path_list> 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