diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-08-10 20:17:32 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-08-10 20:17:32 +0800 |
commit | c4dee49b969f5fe539d9f68bc863e1cd58d54012 (patch) | |
tree | eecb595fcd41e2cbfae011ef6ab55dee8a5c137d /CommandLineInterface.cpp | |
parent | f61107c1c9fccd7a4bededcf880b26644816737f (diff) | |
download | dexon-solidity-c4dee49b969f5fe539d9f68bc863e1cd58d54012.tar dexon-solidity-c4dee49b969f5fe539d9f68bc863e1cd58d54012.tar.gz dexon-solidity-c4dee49b969f5fe539d9f68bc863e1cd58d54012.tar.bz2 dexon-solidity-c4dee49b969f5fe539d9f68bc863e1cd58d54012.tar.lz dexon-solidity-c4dee49b969f5fe539d9f68bc863e1cd58d54012.tar.xz dexon-solidity-c4dee49b969f5fe539d9f68bc863e1cd58d54012.tar.zst dexon-solidity-c4dee49b969f5fe539d9f68bc863e1cd58d54012.zip |
changed file path to be multiplatform
Diffstat (limited to 'CommandLineInterface.cpp')
-rw-r--r-- | CommandLineInterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp index ff70616a..a5ad07d7 100644 --- a/CommandLineInterface.cpp +++ b/CommandLineInterface.cpp @@ -303,7 +303,7 @@ void CommandLineInterface::createFile(string const& _fileName, string const& _da // create directory if not existent fs::path p(m_args["output-dir"].as<string>()); fs::create_directories(p); - ofstream outFile(m_args["output-dir"].as<string>() + "/" + _fileName); + ofstream outFile((p / _fileName).string()); outFile << _data; if (!outFile) BOOST_THROW_EXCEPTION(FileError() << errinfo_comment("Could not write to file: " + _fileName)); |