From 5b6ecb2d9840a8f9dfa85febfa40a70ae5f50500 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 17 Mar 2015 10:56:24 +0100 Subject: [PATCH] Fix root request path for Dropbox --- apps/files_external/lib/dropbox.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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;