optimize filetype for s3 directories a bit

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2021-10-15 14:54:09 +02:00
parent 87c4c05671
commit 15aa354e74
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -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';
}