andersundsehr / aus_driver_amazon_s3

Provides a TYPO3 FAL driver for the Amazon Web Service S3
GNU Lesser General Public License v3.0
21 stars 40 forks source link

Use listObjectsV2 instead of headObject for checking if a folder exists #67

Closed MidnightDesign closed 3 years ago

MidnightDesign commented 4 years ago

headObject() doesn't work for me on prefixes created using AWS CLI's S3 sync feature. It returns a 404 Not Found. I have no idea why, but listObjectsV2 with a prefix does work.

I also had to fix some code style issues because a pre-commit hook wouldn't let me commit otherwise.