From 758f46ddf0ad312858fa0260c7e92a2d242dc40a Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Thu, 21 Jul 2016 15:53:00 +0600 Subject: CLOUD: Fix FolderDownloadRequest TODO --- backends/cloud/folderdownloadrequest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backends/cloud/folderdownloadrequest.cpp') diff --git a/backends/cloud/folderdownloadrequest.cpp b/backends/cloud/folderdownloadrequest.cpp index ebcd167506..1b3c1c57f5 100644 --- a/backends/cloud/folderdownloadrequest.cpp +++ b/backends/cloud/folderdownloadrequest.cpp @@ -69,6 +69,7 @@ void FolderDownloadRequest::directoryListedCallback(Storage::ListDirectoryRespon _pendingFiles = response.value; // remove all directories + // non-empty directories would be created by DumpFile, and empty ones are just ignored for (Common::Array::iterator i = _pendingFiles.begin(); i != _pendingFiles.end();) if (i->isDirectory()) _pendingFiles.erase(i); @@ -111,7 +112,7 @@ void FolderDownloadRequest::downloadNextFile() { _currentFile = _pendingFiles.back(); _pendingFiles.pop_back(); - } while (_currentFile.isDirectory()); //TODO: may be create these directories (in case those are empty) + } while (_currentFile.isDirectory()); // directories are actually removed earlier, in the directoryListedCallback() sendCommand(GUI::kDownloadProgressCmd, (int)(getProgress() * 100)); -- cgit v1.2.3