aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2025-03-10 09:52:32 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-03-11 10:47:37 +0000
commit6aea50c8b8730b7757bfc8ce1263f0ac7f0ac0f7 (patch)
tree7d521607091f10894d50523137113cb4b66f6631
parentc4a17a6bc8a333af18aa98e1d06f7613ed6fb6f7 (diff)
downloadnextcloud-server-backport/51364/stable31.tar.gz
nextcloud-server-backport/51364/stable31.zip
fix(files_external): Stop building path twice when checking if file exists on case insensitive SMB storagebackport/51364/stable31
Signed-off-by: provokateurin <kate@provokateurin.de>
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php
index ef203021566..41ba7156c34 100644
--- a/apps/files_external/lib/Lib/Storage/SMB.php
+++ b/apps/files_external/lib/Lib/Storage/SMB.php
@@ -625,7 +625,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;