mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-02-06 11:54:26 +00:00
does not create gostcoin dir on android if it exists
This commit is contained in:
parent
316aa43c0a
commit
1cb3bbbef2
@ -1095,9 +1095,13 @@ boost::filesystem::path GetDefaultDataDir()
|
|||||||
{
|
{
|
||||||
fs::path canonical = fs::canonical(fs::path(std::string (ext)));
|
fs::path canonical = fs::canonical(fs::path(std::string (ext)));
|
||||||
pathRet = fs::path(std::string(canonical.c_str()) + "/gostcoin");
|
pathRet = fs::path(std::string(canonical.c_str()) + "/gostcoin");
|
||||||
qDebug()<<"creating dir" << pathRet.c_str();
|
|
||||||
boost::filesystem::path dir=pathRet;
|
boost::filesystem::path dir=pathRet;
|
||||||
boost::filesystem::create_directory(dir);
|
if (!boost::filesystem::exists(dir)) {
|
||||||
|
qDebug()<<"creating dir '" << pathRet.c_str() << "'";
|
||||||
|
boost::filesystem::create_directory(dir);
|
||||||
|
}else{
|
||||||
|
qDebug()<<"dir exists: '" << pathRet.c_str() << "'";
|
||||||
|
}
|
||||||
return pathRet;
|
return pathRet;
|
||||||
}
|
}
|
||||||
// otherwise use /data/.../files
|
// otherwise use /data/.../files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user