mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 15:23:17 -04:00
fix(files_external): list root when using SMB case-insensitive option
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
parent
6c6af170c5
commit
1afaac7031
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue