From 2408fde84e13b8d39592dcbba2fe67f9153f9b89 Mon Sep 17 00:00:00 2001 From: Larry Wright Date: Tue, 24 May 2011 22:52:06 -0500 Subject: [PATCH] Clarified my example --- docs/storage/index.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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