From 735db74b900d1e0a0654ca03983cd91cea36f41e Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Mon, 23 May 2016 12:21:45 +0600 Subject: CLOUD: Add DropboxStorage::listDirectory sketch It doesn't support any "has_more", doesn't call user's callback and just prints JSON instead of parsing in into an array of files. I believe it would become DropboxListDirectoryRequest in the next commit. --- backends/cloud/storage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/cloud/storage.h') diff --git a/backends/cloud/storage.h b/backends/cloud/storage.h index a6b6c48fbe..1435be8329 100644 --- a/backends/cloud/storage.h +++ b/backends/cloud/storage.h @@ -59,7 +59,7 @@ public: /** Public Cloud API comes down there. */ /** Returns Common::Array. */ - virtual void listDirectory(Common::String path, FileArrayCallback callback) = 0; + virtual void listDirectory(Common::String path, FileArrayCallback callback, bool recursive = false) = 0; /** Calls the callback when finished. */ virtual void upload(Common::String path, Common::ReadStream* contents, BoolCallback callback) = 0; -- cgit v1.2.3