Browse Source

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

normalize smb path while listing folder contents
tags/v19.0.0beta1
John Molakvoæ 4 years ago
parent
commit
fa4162e86f
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/files_external/lib/Lib/Storage/SMB.php

+ 1
- 1
apps/files_external/lib/Lib/Storage/SMB.php 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;

Loading…
Cancel
Save