We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25de591 commit 89a2845Copy full SHA for 89a2845
1 file changed
apps/files_external/lib/Lib/Storage/AmazonS3.php
@@ -334,8 +334,9 @@ public function opendir($path) {
334
// sub folders
335
if (is_array($result['CommonPrefixes'])) {
336
foreach ($result['CommonPrefixes'] as $prefix) {
337
- $files[] = substr(trim($prefix['Prefix'], '/'), strlen($path));
338
- $this->directoryCache[trim($prefix['Prefix'], '/')] = true;
+ $directoryName = trim($prefix['Prefix'], '/');
+ $files[] = substr($directoryName, strlen($path));
339
+ $this->directoryCache[$directoryName] = true;
340
}
341
342
if (is_array($result['Contents'])) {
0 commit comments