mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-06 04:51:46 -07:00
Self test JSONDB.
This commit is contained in:
parent
a78d7311a6
commit
a454a37a6e
2 changed files with 20 additions and 2 deletions
|
@ -147,8 +147,6 @@ std::string JSONDB::_genPath(const std::string &n,bool create)
|
|||
std::vector<std::string> pt(Utils::split(n.c_str(),"/","",""));
|
||||
if (pt.size() == 0)
|
||||
return std::string();
|
||||
if (pt.size() == 1)
|
||||
return pt[0];
|
||||
|
||||
std::string p(_basePath);
|
||||
if (create) OSUtils::mkdir(p.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue