Merge pull request #43523 from nextcloud/backport/43349/stable28

This commit is contained in:
Benjamin Gaussorgues 2024-02-12 13:25:46 +01:00 committed by GitHub
commit 243d31c035
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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