1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Clarified my example

This commit is contained in:
Larry Wright 2011-05-24 22:52:06 -05:00
parent 5d3de0891c
commit 2408fde84e

View file

@ -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