Merge pull request #43522 from nextcloud/backport/43349/stable27

This commit is contained in:
Benjamin Gaussorgues 2024-02-13 09:31:15 +01:00 committed by GitHub
commit 1603a67fe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {