mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Namespace File
This commit is contained in:
parent
4ffca659cc
commit
9890657124
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ module Fog
|
||||||
file = ::File.new(path, 'wb')
|
file = ::File.new(path, 'wb')
|
||||||
if body.is_a?(String)
|
if body.is_a?(String)
|
||||||
file.write(body)
|
file.write(body)
|
||||||
elsif body.kind_of? ::File and File.exists?(body.path)
|
elsif body.kind_of? ::File and ::File.exists?(body.path)
|
||||||
FileUtils.cp(body.path, path)
|
FileUtils.cp(body.path, path)
|
||||||
else
|
else
|
||||||
file.write(body.read)
|
file.write(body.read)
|
||||||
|
|
Loading…
Reference in a new issue