diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2025-03-11 11:44:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-11 11:44:12 +0100 |
commit | a378d5c454e593c70b34bcb9e0039e742a76dd07 (patch) | |
tree | dfcdd8d62747ad3142fb7b3031d7cc2bbc623d08 | |
parent | 21c09e4816cd76288a5d73d2910bde989bc814ae (diff) | |
parent | e9e67cbc50d0b1efb02a734b4c858b32ef8832c0 (diff) | |
download | nextcloud-server-a378d5c454e593c70b34bcb9e0039e742a76dd07.tar.gz nextcloud-server-a378d5c454e593c70b34bcb9e0039e742a76dd07.zip |
Merge pull request #51364 from nextcloud/fix/files_external/smb-case-insensitive-path-building
fix(files_external): Stop building path twice when checking if file exists on case insensitive SMB storage
-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 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; |