20#ifndef ORES_ORE_SCANNER_ORE_DIRECTORY_SCANNER_HPP
21#define ORES_ORE_SCANNER_ORE_DIRECTORY_SCANNER_HPP
25#include <unordered_set>
27#include "ores.ore/scanner/scan_result.hpp"
28#include "ores.logging/make_logger.hpp"
30namespace ores::ore::scanner {
42 inline static std::string_view logger_name =
43 "ores.ore.scanner.ore_directory_scanner";
45 [[nodiscard]]
static auto& lg() {
47 static auto instance = make_logger(logger_name);
59 std::filesystem::path root,
60 std::unordered_set<std::string> exclusions = {});
73 bool is_excluded(
const std::filesystem::path& relative_path)
const;
75 std::filesystem::path root_;
76 std::unordered_set<std::string> exclusions_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Scans an ORE directory tree and classifies files by type.
Definition ore_directory_scanner.hpp:40
scan_result scan()
Walks the directory tree and classifies all files.
Definition ore_directory_scanner.cpp:44
Result of scanning an ORE directory for importable files.
Definition scan_result.hpp:31