fix(files_external): list root when using SMB case-insensitive option

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
pull/43349/head
Benjamin Gaussorgues 2 years ago
parent 062ca546ee
commit 2cb0bf5437
No known key found for this signature in database
GPG Key ID: 5DAC1CAFAA6DB883
  1. 3
      apps/files_external/lib/Lib/Storage/SMB.php

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

Loading…
Cancel
Save