tpyo / amazon-s3-php-class

A standalone Amazon S3 (REST) client for PHP 5/CURL
1.03k stars 503 forks source link

deleteObject retrun true when even the file is not deleted #119

Closed aamirdx closed 7 years ago

aamirdx commented 8 years ago

I am using this method to delete a file but it always return true ("Delete successfully") even file is not exist on S3

if ($s3->deleteObject($bucketName, baseName($uploadFile))) {
    echo "Delete successfully";
}else{
   echo "Fail to delete";
}   
tpyo commented 7 years ago

Sorry for the late response. The successful response is what is included in the API response, so not really related to the library.