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 committed by backportbot[bot]
parent a3d365b33b
commit 01cd477f04

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