Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-10-15 15:54:09 +0300
committerRobin Appelman <robin@icewind.nl>2021-10-26 15:43:59 +0300
commit15aa354e7451ff77ba60d67c2124593e28374596 (patch)
tree912b8329e01315b9513f7f10b84bc047547cbde3
parent87c4c05671c3002b5533f6029ef931a3c228aca0 (diff)
optimize filetype for s3 directories a bit
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/files_external/lib/Lib/Storage/AmazonS3.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php
index 7413600f730..64909fb0bef 100644
--- a/apps/files_external/lib/Lib/Storage/AmazonS3.php
+++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php
@@ -451,6 +451,9 @@ class AmazonS3 extends \OC\Files\Storage\Common {
}
try {
+ if (isset($this->directoryCache[$path])) {
+ return 'dir';
+ }
if (isset($this->filesCache[$path]) || $this->headObject($path)) {
return 'file';
}