Skip to content

Commit

Permalink
Merge pull request #43522 from nextcloud/backport/43349/stable27
Browse files Browse the repository at this point in the history
  • Loading branch information
Altahrim authored Feb 13, 2024
2 parents 0d3addc + a6c3f8d commit 1603a67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files_external/lib/Lib/Storage/SMB.php
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,8 @@ public function mkdir($path) {

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) {
Expand Down

0 comments on commit 1603a67

Please sign in to comment.