diff --git a/AwsS3V3Adapter.php b/AwsS3V3Adapter.php index 60f6342..d9d1f57 100644 --- a/AwsS3V3Adapter.php +++ b/AwsS3V3Adapter.php @@ -115,7 +115,7 @@ public function __construct( public function fileExists(string $path): bool { try { - return $this->client->doesObjectExist($this->bucket, $this->prefixer->prefixPath($path), $this->options); + return $this->client->doesObjectExistV2($this->bucket, $this->prefixer->prefixPath($path), $this->options); } catch (Throwable $exception) { throw UnableToCheckFileExistence::forLocation($path, $exception); } diff --git a/composer.json b/composer.json index 9e8a9fe..03d58cb 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "php": "^8.0.2", "league/flysystem": "^3.10.0", "league/mime-type-detection": "^1.0.0", - "aws/aws-sdk-php": "^3.132.4" + "aws/aws-sdk-php": "^3.220.0" }, "conflict": { "guzzlehttp/ringphp": "<1.1.1",