Merge pull request #188 from kiwix/create_directory

Create the datadirectory to not fail to write the aria2 session file.
This commit is contained in:
Matthieu Gautier 2018-12-14 16:44:46 +01:00 committed by GitHub
commit cb98f11ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,8 @@ kiwix-lib 3.1.1
feed generation.
* Convert the standard opds date to our format (YYYY-MM-DD)
* Remove duplicate language attribute in the libxml dumper.
* Create the datadirectory to not fail to write a file in a non-existent
directory
kiwix-lib 3.1.0
===============

View File

@ -26,6 +26,7 @@ Aria2::Aria2():
m_lock(PTHREAD_MUTEX_INITIALIZER)
{
m_downloadDir = getDataDirectory();
makeDirectory(m_downloadDir);
std::vector<const char*> callCmd;
std::string rpc_port = "--rpc-listen-port=" + to_string(m_port);