Merge pull request #14946 from owncloud/dropbox-root-fix
Fix root request path for Dropbox
This commit is contained in:
commit
c57fb62029
|
@ -100,7 +100,12 @@ class Dropbox extends \OC\Files\Storage\Common {
|
||||||
return $contents;
|
return $contents;
|
||||||
} else {
|
} else {
|
||||||
try {
|
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']) {
|
if (!isset($response['is_deleted']) || !$response['is_deleted']) {
|
||||||
$this->metaData[$path] = $response;
|
$this->metaData[$path] = $response;
|
||||||
return $response;
|
return $response;
|
||||||
|
|
Loading…
Reference in New Issue