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:
parent
66d4aefc95
commit
ce98e3f970
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue