|
@@ -96,7 +96,6 @@ std::vector<char> FileManager::readGet() {
|
|
|
|
|
|
std::vector<std::string> FileManager::listFiles() {
|
|
|
std::vector<std::string> res;
|
|
|
- // TODO make path configurable
|
|
|
for (const auto &entry :
|
|
|
boost::filesystem::directory_iterator(this->fileDirectory)) {
|
|
|
if (boost::filesystem::is_directory(entry.path()))
|
|
@@ -131,26 +130,6 @@ int FileManager::openList() {
|
|
|
}
|
|
|
|
|
|
return this->list.size();
|
|
|
-
|
|
|
- /*
|
|
|
-if (fullList.size() > 0)
|
|
|
- chunks++;
|
|
|
- remainingListChunks = chunks;
|
|
|
- return chunks;
|
|
|
- */
|
|
|
-
|
|
|
- /*
|
|
|
- int cursize = 0;
|
|
|
- while (!list.empty()) {
|
|
|
- std::string tmp = list.back();
|
|
|
- cursize += tmp.length() + 3; // +3 because two '"' and one ',' per file entry
|
|
|
- if (cursize > max_data_length) {
|
|
|
- break;
|
|
|
-} else {
|
|
|
- ret.push_back(tmp);
|
|
|
- list.pop_back();
|
|
|
-}
|
|
|
-}*/
|
|
|
}
|
|
|
|
|
|
int FileManager::getRemainingListChunks() { return this->list.size(); }
|