From d1d71afb0724c372143d2c303c70291ba43d2d68 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Tue, 7 Jun 2016 13:07:46 +0600 Subject: CLOUD: Add GoogleDriveListDirectoryRequest When listing directories, you get a list of StorageFiles, which path() is actually Google Drive id. Thus, if you list a directory recursively, you won't be able to determine whether all files are within one directory or have some hierarchy. I'd fix that as soon as it would be needed. --- backends/cloud/googledrive/googledriveresolveidrequest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/cloud/googledrive/googledriveresolveidrequest.cpp') diff --git a/backends/cloud/googledrive/googledriveresolveidrequest.cpp b/backends/cloud/googledrive/googledriveresolveidrequest.cpp index 5dcb5c6e11..0ef0cd982f 100644 --- a/backends/cloud/googledrive/googledriveresolveidrequest.cpp +++ b/backends/cloud/googledrive/googledriveresolveidrequest.cpp @@ -53,7 +53,7 @@ void GoogleDriveResolveIdRequest::start() { _currentDirectoryId = "appDataFolder"; _ignoreCallback = false; - listNextDirectory(StorageFile("", 0, 0, false)); + listNextDirectory(StorageFile(_currentDirectoryId, 0, 0, true)); } void GoogleDriveResolveIdRequest::listNextDirectory(StorageFile fileToReturn) { -- cgit v1.2.3