diff --git a/lib/local/Utilities/src/RecorderOpenFace.cpp b/lib/local/Utilities/src/RecorderOpenFace.cpp index 62ca86d..2ec7852 100644 --- a/lib/local/Utilities/src/RecorderOpenFace.cpp +++ b/lib/local/Utilities/src/RecorderOpenFace.cpp @@ -59,8 +59,8 @@ void CreateDirectory(std::string output_path) // Creating the right directory structure auto p = path(output_path); - // Deal with a case where directory ends with a / or \\ - p.remove_trailing_separator(); + // Deal with a case where directory ends with a \\ or / + p = p.remove_trailing_separator(); if (!boost::filesystem::exists(p)) {