psugand / CodeIgniter-S3

Amazon S3 Library for CodeIgniter
http://prashant.es
241 stars 115 forks source link

deleteObject() returns true but object seems not deleted #8

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hi i'm using this wonderfull library and i'm really happy with it.

I just think i got a problem with the deleteObject() method.

I have a bucket called "webapp". Then all my links looks like "www.s3.amazon.com/webapp/123/photos/file.jpg" so i run $this->s3->deleteObject("webapp","www.s3.amazon.com/webapp/123"); and it returns TRUE without any errors.

But if i browse the link by browser the files still be in there, so the object is not deleted.

Have you any clue please?

Thanks a lot!

psugand commented 11 years ago

Hi. Sorry for the late response - I haven't been about.

I believe you need to delete the contents within that directory before being able to delete any objects or files.

Hope that helps.