Skip to content

Commit

Permalink
Fix mkdir bug, thanks @radix42!
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Aug 24, 2019
1 parent 09e96e7 commit 1fe1473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void ConnectionLoader::createZcashConf() {
}

main->logger->write("Creating file " + confLocation);
QDir().mkdir(fi.dir().absolutePath());
QDir().mkpath(fi.dir().absolutePath());

QFile file(confLocation);
if (!file.open(QIODevice::ReadWrite | QIODevice::Truncate)) {
Expand All @@ -187,7 +187,7 @@ void ConnectionLoader::createZcashConf() {

QTextStream out(&file);

out << "# Autogenerated by Silent Dragon\n";
out << "# Autogenerated by Hush SilentDragon https://myhush.org\n";
out << "server=1\n";
out << "rpcuser=hush\n";
out << "rpcpassword=" % randomPassword() << "\n";
Expand Down

0 comments on commit 1fe1473

Please sign in to comment.