Skip to content

Commit

Permalink
[Dropbox] When a path is empty, ensure a leading slash.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Feb 16, 2014
1 parent e49b932 commit e495211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Dropbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function listContents($directory = '', $recursive = false)
$listing = array();
$directory = trim($directory, '/.');
$prefixLength = strlen($this->prefix);
$location = rtrim($this->prefix($directory), '/');
$location = '/' . trim($this->prefix($directory), '/');

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

0 comments on commit e495211

Please sign in to comment.