summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-03-17 10:56:24 +0100
committerVincent Petry <pvince81@owncloud.com>2015-03-17 10:56:24 +0100
commit5b6ecb2d9840a8f9dfa85febfa40a70ae5f50500 (patch)
treea229c1e71af416abbaae629f7006d098a3392255 /apps/files_external
parent6f687fa6ae2fb2927ca89888295c8bf6916e8e38 (diff)
downloadnextcloud-server-5b6ecb2d9840a8f9dfa85febfa40a70ae5f50500.tar.gz
nextcloud-server-5b6ecb2d9840a8f9dfa85febfa40a70ae5f50500.zip
Fix root request path for Dropbox
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/dropbox.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php
index 3dea8515b7b..af0a81e58d5 100644
--- a/apps/files_external/lib/dropbox.php
+++ b/apps/files_external/lib/dropbox.php
@@ -100,7 +100,12 @@ class Dropbox extends \OC\Files\Storage\Common {
return $contents;
} else {
try {
- $response = $this->dropbox->getMetaData($path, 'false');
+ $requestPath = $path;
+ if ($path === '.') {
+ $requestPath = '';
+ }
+
+ $response = $this->dropbox->getMetaData($requestPath, 'false');
if (!isset($response['is_deleted']) || !$response['is_deleted']) {
$this->metaData[$path] = $response;
return $response;