Wildmeshing Toolkit
Loading...
Searching...
No Matches
resolve_path.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4
6
33std::filesystem::path resolve_path(
34 const std::filesystem::path& root,
35 const std::filesystem::path& path);
36
42std::filesystem::path resolve_paths(
43 const std::filesystem::path& root,
44 const std::initializer_list<std::filesystem::path>& paths);
45
49std::filesystem::path resolve_path_if_not_empty(
50 const std::filesystem::path& root,
51 const std::filesystem::path& path);
52
53} // namespace wmtk::components::utils
fs::path resolve_path(const fs::path &root, const fs::path &path)
fs::path resolve_paths(const fs::path &root, const std::initializer_list< fs::path > &paths)
std::filesystem::path resolve_path_if_not_empty(const std::filesystem::path &root, const std::filesystem::path &path)
Wraps resolve_path() but returns path directly if it is empty.