diff options
author | Robin Appelman <robin@icewind.nl> | 2021-10-15 14:54:09 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-10-26 14:43:59 +0200 |
commit | 15aa354e7451ff77ba60d67c2124593e28374596 (patch) | |
tree | 912b8329e01315b9513f7f10b84bc047547cbde3 /apps/files_external | |
parent | 87c4c05671c3002b5533f6029ef931a3c228aca0 (diff) | |
download | nextcloud-server-15aa354e7451ff77ba60d67c2124593e28374596.tar.gz nextcloud-server-15aa354e7451ff77ba60d67c2124593e28374596.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.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'; } |