mirror of
https://github.com/nextcloud/server.git
synced 2026-03-17 16:13:08 -04:00
optimize filetype for s3 directories a bit
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
a3d365b33b
commit
01cd477f04
1 changed files with 3 additions and 0 deletions
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue