Skip to content

Commit e495211

Browse files
committed
[Dropbox] When a path is empty, ensure a leading slash.
1 parent e49b932 commit e495211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapter/Dropbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function listContents($directory = '', $recursive = false)
211211
$listing = array();
212212
$directory = trim($directory, '/.');
213213
$prefixLength = strlen($this->prefix);
214-
$location = rtrim($this->prefix($directory), '/');
214+
$location = '/' . trim($this->prefix($directory), '/');
215215

216216
if ( ! $result = $this->client->getMetadataWithChildren($location)) {
217217
return array();

0 commit comments

Comments
 (0)