summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-19 17:19:57 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-19 17:19:57 +0100
commitc57fb6202970a21e6003b9ac1122562c97adc94f (patch)
tree98a75c648fed232293dd2c9e9de63ab3865ed978 /apps
parent857b22c61be8f78581f41ac155efeff34ed335cd (diff)
parent5b6ecb2d9840a8f9dfa85febfa40a70ae5f50500 (diff)
downloadnextcloud-server-c57fb6202970a21e6003b9ac1122562c97adc94f.tar.gz
nextcloud-server-c57fb6202970a21e6003b9ac1122562c97adc94f.zip
Merge pull request #14946 from owncloud/dropbox-root-fix
Fix root request path for Dropbox
Diffstat (limited to 'apps')
-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;