After looking at the Javadocs for version 2.0.x, I noticed that
createDirectory() was deprecated. How should I go about creating some sort
of hierarchy within a container stored in a given location by a given
provider?

A line of example code and its associated comment (reproduced below) from
the BlobStore start guide (https://jclouds.apache.org/start/blobstore/)
suggests that one can pass to the BlobStore.blobBuilder() method arbitrary
paths separated by forward slashes (like "folderName/sushi.jpg" or
"folderName/anotherFolderName/sushi.gif"). Is this the recommended approach
for every provider, or just Amazon S3? Is there another approach?

blob = blobStore.blobBuilder("test") // you can use folders via
blobBuilder(folderName + "/sushi.jpg")


Thanks,

Logan Widick

Reply via email to