mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
chore(files_external/s3): drop no-op $this->filesCache use sites
Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
parent
08b465d219
commit
bde043d13b
1 changed files with 1 additions and 5 deletions
|
|
@ -324,10 +324,6 @@ class AmazonS3 extends Common {
|
|||
public function is_dir(string $path): bool {
|
||||
$path = $this->normalizePath($path);
|
||||
|
||||
if (isset($this->filesCache[$path])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
return $this->doesDirectoryExist($path);
|
||||
} catch (S3Exception $e) {
|
||||
|
|
@ -350,7 +346,7 @@ class AmazonS3 extends Common {
|
|||
if (isset($this->directoryCache[$path]) && $this->directoryCache[$path]) {
|
||||
return 'dir';
|
||||
}
|
||||
if (isset($this->filesCache[$path]) || $this->headObject($path)) {
|
||||
if ($this->headObject($path)) {
|
||||
return 'file';
|
||||
}
|
||||
if ($this->doesDirectoryExist($path)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue