mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
fix(files_external): Stop building path twice when checking if file exists on case insensitive SMB storage
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
78b31ca00f
commit
e9e67cbc50
1 changed files with 1 additions and 1 deletions
|
|
@ -627,7 +627,7 @@ class SMB extends Common implements INotifyStorage {
|
|||
// Case sensitive filesystem doesn't matter for root directory
|
||||
if ($this->caseSensitive === false && $path !== '') {
|
||||
$filename = basename($path);
|
||||
$siblings = $this->getDirectoryContent(dirname($this->buildPath($path)));
|
||||
$siblings = $this->getDirectoryContent(dirname($path));
|
||||
foreach ($siblings as $sibling) {
|
||||
if ($sibling['name'] === $filename) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue