I'm working with the Rackspace CloudFiles API, where I've got a requirement to check for folder exists inside a container.
I have searched across different areas I could find solution to find if container exists or the object exists.
For example:
Format: container/folder/subfolder/file
Actual file stored location:
test/test_folder/test_subfolder/test.txt
I want to know is my container has already got a folder called test_folder
And I came across something which says path, but am not sure we have this method exists!
getObjects ->> 'path', 'file path to search'
Even though @hurricanerix answer helped me, I want to post exact PHP method and snippet to help other is future.
Output
Hope this will help.