Fix root request path for Dropbox
This commit is contained in:
parent
6f687fa6ae
commit
5b6ecb2d98
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue