summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>2024-02-13 09:31:15 +0100
committerGitHub <noreply@github.com>2024-02-13 09:31:15 +0100
commit1603a67fe2fecfe9343be338077a0e4904b8037a (patch)
tree9999389c9cb421c7c0d796ae00733e466dee5877 /apps
parent0d3addc36df0008cffd043ec073bf198dbccf8aa (diff)
parenta6c3f8dd49da2290cd0718ec98f7effff39fcdf1 (diff)
downloadnextcloud-server-1603a67fe2fecfe9343be338077a0e4904b8037a.tar.gz
nextcloud-server-1603a67fe2fecfe9343be338077a0e4904b8037a.zip
Merge pull request #43522 from nextcloud/backport/43349/stable27
Diffstat (limited to 'apps')
-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 a83887fcda6..34d7585f6e9 100644
--- a/apps/files_external/lib/Lib/Storage/SMB.php
+++ b/apps/files_external/lib/Lib/Storage/SMB.php
@@ -676,7 +676,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) {