Skip to content

Commit

Permalink
Left trim the path separator in order to get `\League\Flysystem\Util\…
Browse files Browse the repository at this point in the history
…ContentListingFormatter::isDirectChild` return true and get the listing of the root folder of a share.

fixes #2
  • Loading branch information
Volker Machon committed Feb 4, 2018
1 parent 72ca081 commit bf8a934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SmbAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ protected function normalizeFileInfo(IFileInfo $file)
{
$normalized = [
'type' => $file->isDirectory() ? 'dir' : 'file',
'path' => $this->getFilePath($file),
'path' => ltrim($this->getFilePath($file), $this->pathSeparator),
'timestamp' => $file->getMTime()
];

Expand Down

0 comments on commit bf8a934

Please sign in to comment.