Merge pull request #20208 from nextcloud/smb-folder-contents-normalize-path
normalize smb path while listing folder contents
This commit is contained in:
commit
fa4162e86f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue