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.
2 parents 993609c + 0d667d1 commit 7fc68feCopy full SHA for 7fc68fe
apps/files_external/lib/Lib/Storage/AmazonS3.php
@@ -309,7 +309,7 @@ public function opendir($path) {
309
$files[] = $file;
310
311
// store this information for later usage
312
- $this->filesCache[$file] = [
+ $this->filesCache[$path . $file] = [
313
'ContentLength' => $object['Size'],
314
'LastModified' => (string)$object['LastModified'],
315
];
@@ -408,7 +408,7 @@ public function filetype($path) {
408
}
409
410
try {
411
- if ($this->headObject($path)) {
+ if (isset($this->filesCache[$path]) || $this->headObject($path)) {
412
return 'file';
413
414
if ($this->headObject($path . '/')) {
0 commit comments