summaryrefslogtreecommitdiff
path: root/controller/JSONDB.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-18 13:48:19 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-18 13:48:19 -0700
commitf6d92eb737507e6c56cf59aa7b4c4fce679e23cd (patch)
treec228f2020e59bf90d02a8fc0808bc7bc6139c686 /controller/JSONDB.cpp
parent48cadcd2fcd95d39db28b15ceb0c79e6dbc80611 (diff)
downloadinfinitytier-f6d92eb737507e6c56cf59aa7b4c4fce679e23cd.tar.gz
infinitytier-f6d92eb737507e6c56cf59aa7b4c4fce679e23cd.zip
JSONDB fix.
Diffstat (limited to 'controller/JSONDB.cpp')
-rw-r--r--controller/JSONDB.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/controller/JSONDB.cpp b/controller/JSONDB.cpp
index 8b6de9b4..756664eb 100644
--- a/controller/JSONDB.cpp
+++ b/controller/JSONDB.cpp
@@ -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 {