aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Storage
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2025-03-10 09:52:32 +0100
committerprovokateurin <kate@provokateurin.de>2025-03-10 09:52:32 +0100
commite9e67cbc50d0b1efb02a734b4c858b32ef8832c0 (patch)
tree6746bfcb55ddc8f927d310929a91b41645e86316 /apps/files_external/lib/Lib/Storage
parent78b31ca00f31cea436c6ae00e7161deb95840a31 (diff)
downloadnextcloud-server-e9e67cbc50d0b1efb02a734b4c858b32ef8832c0.tar.gz
nextcloud-server-e9e67cbc50d0b1efb02a734b4c858b32ef8832c0.zip
fix(files_external): Stop building path twice when checking if file exists on case insensitive SMB storagefix/files_external/smb-case-insensitive-path-building
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/files_external/lib/Lib/Storage')
-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 f08401f73c5..fc1f9b9ecd1 100644
--- a/apps/files_external/lib/Lib/Storage/SMB.php
+++ b/apps/files_external/lib/Lib/Storage/SMB.php
@@ -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;