diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-03-17 10:56:24 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-03-17 10:56:24 +0100 |
commit | 5b6ecb2d9840a8f9dfa85febfa40a70ae5f50500 (patch) | |
tree | a229c1e71af416abbaae629f7006d098a3392255 /apps/files_external | |
parent | 6f687fa6ae2fb2927ca89888295c8bf6916e8e38 (diff) | |
download | nextcloud-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.php | 7 |
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; |