diff options
author | Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | 2024-02-05 11:24:12 +0100 |
---|---|---|
committer | Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | 2024-02-05 11:24:12 +0100 |
commit | 2cb0bf5437fb42e89f0a639ed8343669ef1dcc56 (patch) | |
tree | 88967d22a176443b1866e67e8ed0e9ee3b7205a4 /apps | |
parent | 062ca546ee23222137613696606ed54364c48888 (diff) | |
download | nextcloud-server-2cb0bf5437fb42e89f0a639ed8343669ef1dcc56.tar.gz nextcloud-server-2cb0bf5437fb42e89f0a639ed8343669ef1dcc56.zip |
fix(files_external): list root when using SMB case-insensitive option
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Diffstat (limited to 'apps')
-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) { |