diff --git a/src/SmbAdapter.php b/src/SmbAdapter.php index 2df35da..d6031cd 100644 --- a/src/SmbAdapter.php +++ b/src/SmbAdapter.php @@ -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() ];