Friends :)

This commit is contained in:
2026-05-22 08:15:16 -04:00
parent 1bc5199e3b
commit b1c9d38ef5
21 changed files with 87950 additions and 30586 deletions
+13
View File
@@ -100,12 +100,25 @@ namespace anm2ed::util::path
std::filesystem::path make_relative(const std::filesystem::path& path)
{
if (path.empty()) return path;
if (!path.is_absolute()) return path;
std::error_code ec{};
auto relative = std::filesystem::relative(path, ec);
if (!ec) return relative;
return path;
}
std::filesystem::path make_relative(const std::filesystem::path& path, const std::filesystem::path& base)
{
if (path.empty()) return path;
if (base.empty() || !path.is_absolute()) return path;
std::error_code ec{};
auto relative = std::filesystem::relative(path, base, ec);
if (!ec) return relative;
return path;
}
std::filesystem::path lower_case_backslash_handle(const std::filesystem::path& path)
{
auto newPath = path;