diff options
author | chriseth <chris@ethereum.org> | 2018-10-04 20:55:32 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-10-12 21:15:01 +0800 |
commit | 56bbfce6d36befbe89256035a333d9b47b360e0d (patch) | |
tree | e6041d130c398f79163e8b8684357142bbe0b624 /libdevcore | |
parent | 6daeb39ecc7ffd0e834e63f6495442c4211c5c1c (diff) | |
download | dexon-solidity-56bbfce6d36befbe89256035a333d9b47b360e0d.tar.gz dexon-solidity-56bbfce6d36befbe89256035a333d9b47b360e0d.tar.zst dexon-solidity-56bbfce6d36befbe89256035a333d9b47b360e0d.zip |
Fix directory creation.
Diffstat (limited to 'libdevcore')
-rw-r--r-- | libdevcore/CommonIO.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdevcore/CommonIO.cpp b/libdevcore/CommonIO.cpp index 2005d087..1aa3504c 100644 --- a/libdevcore/CommonIO.cpp +++ b/libdevcore/CommonIO.cpp @@ -94,7 +94,7 @@ void dev::writeFile(std::string const& _file, bytesConstRef _data, bool _writeDe { // create directory if not existent fs::path p(_file); - if (!fs::exists(p.parent_path())) + if (!p.parent_path().empty() && !fs::exists(p.parent_path())) { fs::create_directories(p.parent_path()); try |