From 73741cce73326e5a46ae28ac08d0756d9293e850 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 6 Dec 2013 16:03:40 +0000 Subject: [PATCH] feature(dropbox) readDir: add path condition --- lib/client/storage/_dropbox.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/client/storage/_dropbox.js b/lib/client/storage/_dropbox.js index 7b0cccb2..24366158 100644 --- a/lib/client/storage/_dropbox.js +++ b/lib/client/storage/_dropbox.js @@ -155,6 +155,9 @@ var CloudCmd, Util, DOM, Dropbox, cb, Client; path : path, files : [] }; + + if (path !== '/') + path += '/'; if (error) msg = error.responseText;