diff --git a/docs/storage/index.markdown b/docs/storage/index.markdown index 4a00b56b1..a08429281 100644 --- a/docs/storage/index.markdown +++ b/docs/storage/index.markdown @@ -175,11 +175,12 @@ Fog takes care of the rest so you can focus on your cover letter. And with the a Sometimes you might want to find out some information about a file without retrieving the whole file. You can do that using 'head'. #returns nil if the file doesn't exist - if directory.files.head('resume.html') - #do something + unless directory.files.head('resume.html') + #do something, like creating the file end #returns a hash with the following data: + # 'key' - Key for the object # 'Content-Length' - Size of object contents # 'Content-Type' - MIME type of object # 'ETag' - Etag of object