diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-22 17:32:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-22 17:32:12 +0200 |
commit | 7d3b0739ff49c10a6703c7625ade42dfe72976fe (patch) | |
tree | 126388ea731996f762d9130e23bde53476f7ba42 | |
parent | 6123a93e79239a7d5886604b1ecafd7d4fc3710d (diff) |
Fix bug in mkdir_p()
-rw-r--r-- | butl/filesystem.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/butl/filesystem.cxx b/butl/filesystem.cxx index 98b8d62..e2e9735 100644 --- a/butl/filesystem.cxx +++ b/butl/filesystem.cxx @@ -73,7 +73,7 @@ namespace butl { dir_path d (p.directory ()); - if (!dir_exists (d)) + if (!d.empty () && !dir_exists (d)) try_mkdir_p (d, m); } |