From f45c636e496b61422e9a7de1c56c19f8ff00c57a Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 10 Mar 2025 09:52:32 +0100 Subject: 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 e5897c26531..f9e495d2a56 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -693,7 +693,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; -- cgit v1.2.3