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:
parent
5d3de0891c
commit
2408fde84e
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue