Commit 5b2bef82 authored by Konstantinos Chatzilygeroudis's avatar Konstantinos Chatzilygeroudis
Browse files

Allow paths with multiple directories in serialize

parent 3e4dc40c
...@@ -135,7 +135,7 @@ namespace limbo { ...@@ -135,7 +135,7 @@ namespace limbo {
void _create_directory() const void _create_directory() const
{ {
boost::filesystem::path my_path(_dir_name); boost::filesystem::path my_path(_dir_name);
boost::filesystem::create_directory(my_path); boost::filesystem::create_directories(my_path);
} }
template <class Matrix, class Stream> template <class Matrix, class Stream>
......
...@@ -125,7 +125,7 @@ namespace limbo { ...@@ -125,7 +125,7 @@ namespace limbo {
void _create_directory() const void _create_directory() const
{ {
boost::filesystem::path my_path(_dir_name); boost::filesystem::path my_path(_dir_name);
boost::filesystem::create_directory(my_path); boost::filesystem::create_directories(my_path);
} }
std::vector<std::vector<double>> _load(const std::string& object_name) const std::vector<std::vector<double>> _load(const std::string& object_name) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment