diff options
author | Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | 2024-02-12 14:30:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 14:30:04 +0100 |
commit | 0be4593d41c195ddafc95c25893c12a257fd3721 (patch) | |
tree | 3d2dc1d6e37fce1c784162ff7478e876ce7d700f | |
parent | 33433a7f8db88e22a1032f5ad7c999982ffffafa (diff) | |
parent | 8f7916847487740f7666e76df45e0fe1829a91fe (diff) | |
download | nextcloud-server-0be4593d41c195ddafc95c25893c12a257fd3721.tar.gz nextcloud-server-0be4593d41c195ddafc95c25893c12a257fd3721.zip |
Merge pull request #43521 from nextcloud/backport/43349/stable26
-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 7ceb5882b88..ed39bf57d2c 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -672,7 +672,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) { |