mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix directory creation.
This commit is contained in:
parent
6daeb39ecc
commit
56bbfce6d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user