aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2024-02-12 11:14:07 +0100
committerGitHub <noreply@github.com>2024-02-12 11:14:07 +0100
commit35d0c63abc091e06e0d77e3701b14fdf48539d6d (patch)
tree3c564f99a5ee5d87a4f7a04fd488de35171abc8f /apps/files_external/lib
parente053ce243e78c3d8ff713acfe027263f084b81fa (diff)
parent2cb0bf5437fb42e89f0a639ed8343669ef1dcc56 (diff)
downloadnextcloud-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.php3
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) {