aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-10-15 14:54:09 +0200
committerRobin Appelman <robin@icewind.nl>2021-10-15 15:35:16 +0200
commitd3bd0b5a1bfd8125866a9a86cbb05d3d2c6e14bb (patch)
tree429969b48c3463c7ce01630c9f9eaf417e898c27 /apps/files_external
parent294b218895f446fe53bf9882c964d7cb49baf41d (diff)
downloadnextcloud-server-d3bd0b5a1bfd8125866a9a86cbb05d3d2c6e14bb.tar.gz
nextcloud-server-d3bd0b5a1bfd8125866a9a86cbb05d3d2c6e14bb.zip
optimize filetype for s3 directories a bit
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external')
-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 6fbe913ec7c..c4c82c6a879 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';
}