diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-02-12 11:14:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 11:14:07 +0100 |
commit | 35d0c63abc091e06e0d77e3701b14fdf48539d6d (patch) | |
tree | 3c564f99a5ee5d87a4f7a04fd488de35171abc8f /apps/files_external/lib | |
parent | e053ce243e78c3d8ff713acfe027263f084b81fa (diff) | |
parent | 2cb0bf5437fb42e89f0a639ed8343669ef1dcc56 (diff) | |
download | nextcloud-server-35d0c63abc091e06e0d77e3701b14fdf48539d6d.tar.gz nextcloud-server-35d0c63abc091e06e0d77e3701b14fdf48539d6d.zip |
Merge pull request #43349 from nextcloud/fix/case-sensitive-root-smb
SMB: allow to list root directory when using case-insensitive option
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/SMB.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php index 2c0a412d341..c7324db01e4 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -683,7 +683,8 @@ class SMB extends Common implements INotifyStorage { public function file_exists($path) { try { - if ($this->caseSensitive === false) { + // Case sensitive filesystem doesn't matter for root directory + if ($this->caseSensitive === false && $path !== '') { $filename = basename($path); $siblings = $this->getDirectoryContent(dirname($this->buildPath($path))); foreach ($siblings as $sibling) { |