Skip to content
Snippets Groups Projects
Commit c57fb620 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #14946 from owncloud/dropbox-root-fix

Fix root request path for Dropbox
parents 857b22c6 5b6ecb2d
Branches
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment