Self test JSONDB.

This commit is contained in:
Adam Ierymenko
2016-11-07 13:27:17 -08:00
parent a78d7311a6
commit a454a37a6e
2 changed files with 20 additions and 2 deletions

View File

@ -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());