Skip to content

Commit

Permalink
Merge pull request #3 from olafnorge/fix-empty-list-of-folder-when-ca…
Browse files Browse the repository at this point in the history
…lling-root-of-share

Resolves "Empty list of contents if you call Filesystem::listContents() on root path of share"
  • Loading branch information
robgridley authored Nov 15, 2018
2 parents e10ef72 + bf8a934 commit 91927ce
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 91927ce

Please sign in to comment.