#pragma once #include #include #include #include #include #include namespace filepath { static std::tuple getFileInfo(const std::filesystem::directory_entry& entry) { const auto file_status (std::filesystem::status(entry)); return {entry.path(), file_status}; } static bool endsWith(const std::string& string, const std::string& ending) { if (ending.size() > string.size()) return false; return std::equal(ending.rbegin(), ending.rend(), string.rbegin()); } }