diff options
author | Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | 2024-02-05 11:24:12 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-02-12 10:16:31 +0000 |
commit | 1afaac7031543a61c1beb31cae1050a44b09c63b (patch) | |
tree | 036d1cc73086c9d4f71e0eb0bd224877b1615f01 /apps/files_external | |
parent | 6c6af170c535916c309ccb04579cc899205a58dd (diff) | |
download | nextcloud-server-1afaac7031543a61c1beb31cae1050a44b09c63b.tar.gz nextcloud-server-1afaac7031543a61c1beb31cae1050a44b09c63b.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/files_external')
-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) { |