diff options
author | provokateurin <kate@provokateurin.de> | 2025-03-10 09:52:32 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-03-11 10:46:24 +0000 |
commit | f4f236bdf7d2fa4464bdedafb151ec03038e4051 (patch) | |
tree | 318d3dd9e8e482646dc73d3e688174f10e3245ec | |
parent | 4318455bbd4155141028672f3543fa22742dea09 (diff) | |
download | nextcloud-server-backport/51364/stable30.tar.gz nextcloud-server-backport/51364/stable30.zip |
fix(files_external): Stop building path twice when checking if file exists on case insensitive SMB storagebackport/51364/stable30
Signed-off-by: provokateurin <kate@provokateurin.de>
-rw-r--r-- | apps/files_external/lib/Lib/Storage/SMB.php | 2 |
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 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; |