mirror of https://github.com/kiwix/libkiwix.git
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:
commit
cb98f11ddc
|
@ -5,6 +5,8 @@ kiwix-lib 3.1.1
|
||||||
feed generation.
|
feed generation.
|
||||||
* Convert the standard opds date to our format (YYYY-MM-DD)
|
* Convert the standard opds date to our format (YYYY-MM-DD)
|
||||||
* Remove duplicate language attribute in the libxml dumper.
|
* 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
|
kiwix-lib 3.1.0
|
||||||
===============
|
===============
|
||||||
|
|
|
@ -26,6 +26,7 @@ Aria2::Aria2():
|
||||||
m_lock(PTHREAD_MUTEX_INITIALIZER)
|
m_lock(PTHREAD_MUTEX_INITIALIZER)
|
||||||
{
|
{
|
||||||
m_downloadDir = getDataDirectory();
|
m_downloadDir = getDataDirectory();
|
||||||
|
makeDirectory(m_downloadDir);
|
||||||
std::vector<const char*> callCmd;
|
std::vector<const char*> callCmd;
|
||||||
|
|
||||||
std::string rpc_port = "--rpc-listen-port=" + to_string(m_port);
|
std::string rpc_port = "--rpc-listen-port=" + to_string(m_port);
|
||||||
|
|
Loading…
Reference in New Issue