Skip to content
Snippets Groups Projects
Commit 405ea477 authored by Edric Milaret's avatar Edric Milaret
Browse files

windows: fix recursive mkdir

Refs #72215

Change-Id: I9aef27bb916da18d5aea094acacb546b6797fcd0
parent 5fa08a2e
Branches
Tags
No related merge requests found
...@@ -404,7 +404,6 @@ recursive_mkdir(const std::string& path) ...@@ -404,7 +404,6 @@ recursive_mkdir(const std::string& path)
if (mkdir(path.data()) != 0) { if (mkdir(path.data()) != 0) {
if (errno == ENOENT) { if (errno == ENOENT) {
recursive_mkdir(path.substr(0, path.find_last_of(DIR_SEPARATOR_STR))); recursive_mkdir(path.substr(0, path.find_last_of(DIR_SEPARATOR_STR)));
} else if (errno != EEXIST) {
if (mkdir(path.data()) != 0) { if (mkdir(path.data()) != 0) {
RING_ERR("Could not create directory."); RING_ERR("Could not create directory.");
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment