aboutsummaryrefslogtreecommitdiff
path: root/butl/filesystem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'butl/filesystem.cxx')
-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);
}