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:45:14 +0000 |
commit | f45c636e496b61422e9a7de1c56c19f8ff00c57a (patch) | |
tree | 4ecdfbb069466033518eea6d0b3d162ecd208670 | |
parent | afeda70a8db4150a8c6f213daa83d6c4c3e8bbac (diff) | |
download | nextcloud-server-backport/51364/stable29.tar.gz nextcloud-server-backport/51364/stable29.zip |
fix(files_external): Stop building path twice when checking if file exists on case insensitive SMB storagebackport/51364/stable29
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 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; |