lib/fog/openstack/docs/storage.md in fog-1.24.0 vs lib/fog/openstack/docs/storage.md in fog-1.25.0

- old
+ new

@@ -266,10 +266,19 @@ directory.destroy ``` **Note**: Directory must be empty before it can be deleted. + +## Directory URL + +To get a directory's URL: + +```ruby +directory.public_url +``` + ## List Files To list files in a directory: ```ruby @@ -382,10 +391,18 @@ ``` **Note**: This method is more memory intensive as the entire object is loaded into memory before saving the file as in the example above. +## File URL + +To get a file's URL: + +```ruby +file.public_url +``` + ## Metadata You can access metadata as an attribute on `Fog::Storage::Rackspace::File`. ```ruby @@ -437,5 +454,6 @@ * [Swift API](http://docs.openstack.org/api/openstack-object-storage/1.0/content/index.html) ## Support and Feedback Your feedback is appreciated! If you have specific issues with the **fog** SDK, you should file an [issue via Github](https://github.com/fog/fog/issues). +