Wildmeshing Toolkit
resolve_path.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <filesystem>
4 
5 namespace wmtk::components::utils {
6 
33 std::filesystem::path resolve_path(
34  const std::filesystem::path& root,
35  const std::filesystem::path& path);
36 
42 std::filesystem::path resolve_paths(
43  const std::filesystem::path& root,
44  const std::initializer_list<std::filesystem::path>& paths);
45 
49 std::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.