Skip to content

Commit

Permalink
fix(files_external): list root when using SMB case-insensitive option
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
  • Loading branch information
Altahrim committed Feb 12, 2024
1 parent 0e6714d commit a6c3f8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files_external/lib/Lib/Storage/SMB.php
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 a6c3f8d

Please sign in to comment.