aboutsummaryrefslogtreecommitdiffstats
path: root/CommandLineInterface.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-08-10 20:17:32 +0800
committerLiana Husikyan <liana@ethdev.com>2015-08-10 20:17:32 +0800
commitc4dee49b969f5fe539d9f68bc863e1cd58d54012 (patch)
treeeecb595fcd41e2cbfae011ef6ab55dee8a5c137d /CommandLineInterface.cpp
parentf61107c1c9fccd7a4bededcf880b26644816737f (diff)
downloaddexon-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.cpp2
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));