aboutsummaryrefslogtreecommitdiff
path: root/butl
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-22 17:32:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-22 17:32:12 +0200
commit7d3b0739ff49c10a6703c7625ade42dfe72976fe (patch)
tree126388ea731996f762d9130e23bde53476f7ba42 /butl
parent6123a93e79239a7d5886604b1ecafd7d4fc3710d (diff)
Fix bug in mkdir_p()
Diffstat (limited to 'butl')
-rw-r--r--butl/filesystem.cxx2
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);
}