#pragma once #include #include #include #include #include namespace engine::io { bool is_existing_directory(const std::filesystem::path & path); bool is_existing_file(const std::filesystem::path & path); std::filesystem::path require_directory(const std::filesystem::path & path, std::string_view role); std::filesystem::path require_file(const std::filesystem::path & path, std::string_view role); std::optional find_first_existing( const std::filesystem::path & root, const std::vector & relative_candidates); std::vector collect_existing( const std::filesystem::path & root, const std::vector & relative_candidates); std::string read_text_file(const std::filesystem::path & path); } // namespace engine::io