Fix the separators

This commit is contained in:
Tadas Baltrusaitis 2018-02-02 20:39:59 +00:00
parent 729611cc16
commit d63cb0943f

View file

@ -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))
{