From bde043d13bff123e9c72ed7ff43e5651e9d5e9a4 Mon Sep 17 00:00:00 2001 From: Josh Date: Sun, 1 Mar 2026 12:53:57 -0500 Subject: [PATCH] chore(files_external/s3): drop no-op $this->filesCache use sites Signed-off-by: Josh --- apps/files_external/lib/Lib/Storage/AmazonS3.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index d32ee0f05a3..c0ad6b73bd9 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -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)) {