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

Local storage's File quacks like other Directories

Even though it doesn't accept any options, it'd be nice if it accepted
them anyway in the name of duck typing and allowing backends to be more
swappable.
This commit is contained in:
Andy Lindeman 2013-09-26 13:27:04 -04:00
parent 66d4aefc95
commit ce98e3f970

View file

@ -18,7 +18,7 @@ module Fog
load(data)
end
def get(key)
def get(key, options = {})
if ::File.directory?(service.path_to(key))
new(:key => key)
else