Merge pull request #20208 from nextcloud/smb-folder-contents-normalize-path

normalize smb path while listing folder contents
This commit is contained in:
John Molakvoæ 2020-03-30 10:06:39 +02:00 committed by GitHub
commit fa4162e86f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ class SMB extends Common implements INotifyStorage {
*/
protected function getFolderContents($path) {
try {
$path = $this->buildPath($path);
$path = ltrim($this->buildPath($path), '/');
$files = $this->share->dir($path);
foreach ($files as $file) {
$this->statCache[$path . '/' . $file->getName()] = $file;