diff --git a/SimoxUtility/CMakeLists.txt b/SimoxUtility/CMakeLists.txt index cfb45291979d949cb66d618cee69bc402cffb7ec..e43fcf28677e4420ddf4c51857a3006d103a1bf6 100644 --- a/SimoxUtility/CMakeLists.txt +++ b/SimoxUtility/CMakeLists.txt @@ -52,6 +52,8 @@ SET(INCLUDES SimoxUtility.h EigenStdVector.h + filesystem/remove_trailing_separator.h + meta/eigen/enable_if_compile_time_size.h meta/has_member_macros/has_member.hpp diff --git a/SimoxUtility/filesystem.h b/SimoxUtility/filesystem.h new file mode 100644 index 0000000000000000000000000000000000000000..68d083fd265169f8a51984201e6aff08dc97c842 --- /dev/null +++ b/SimoxUtility/filesystem.h @@ -0,0 +1,5 @@ +#pragma once + +// This file is generated! + +#include "filesystem/remove_trailing_separator.h" diff --git a/SimoxUtility/filesystem/remove_trailing_separator.h b/SimoxUtility/filesystem/remove_trailing_separator.h new file mode 100644 index 0000000000000000000000000000000000000000..c108ea55de67ad1edd4d0419eab7d3e1a8a0096a --- /dev/null +++ b/SimoxUtility/filesystem/remove_trailing_separator.h @@ -0,0 +1,13 @@ +#pragma once + +#include <filesystem> +namespace simox::fs +{ + using namespace std::filesystem; + inline fs::path remove_trailing_separator(fs::path p) + { + p /= "dummy"; + return p.parent_path(); + } +} +