diff options
author | Robin Appelman <robin@icewind.nl> | 2021-10-15 15:54:09 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-10-26 15:43:59 +0300 |
commit | 15aa354e7451ff77ba60d67c2124593e28374596 (patch) | |
tree | 912b8329e01315b9513f7f10b84bc047547cbde3 | |
parent | 87c4c05671c3002b5533f6029ef931a3c228aca0 (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.php | 3 |
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'; } |