From f4f236bdf7d2fa4464bdedafb151ec03038e4051 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 10 Mar 2025 09:52:32 +0100 Subject: [PATCH] fix(files_external): Stop building path twice when checking if file exists on case insensitive SMB storage Signed-off-by: provokateurin --- apps/files_external/lib/Lib/Storage/SMB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php index 87bf9fda410..50ba29ecf13 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -663,7 +663,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;