JSONDB fix.

This commit is contained in:
Adam Ierymenko 2017-04-18 13:48:19 -07:00
parent 48cadcd2fc
commit f6d92eb737
4 changed files with 9 additions and 8 deletions

View file

@ -99,8 +99,9 @@ void JSONDB::erase(const std::string &n)
void JSONDB::_reload(const std::string &p,const std::string &b)
{
std::vector<std::string> dl(OSUtils::listDirectory(p.c_str()));
std::vector<std::string> dl(OSUtils::listDirectory(p.c_str(),true));
for(std::vector<std::string>::const_iterator di(dl.begin());di!=dl.end();++di) {
printf("%s\n",di->c_str());
if ((di->length() > 5)&&(di->substr(di->length() - 5) == ".json")) {
this->get(b + di->substr(0,di->length() - 5));
} else {