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

Namespace File

This commit is contained in:
Jamie Paton 2014-02-24 23:09:38 -08:00
parent 4ffca659cc
commit 9890657124

View file

@ -104,7 +104,7 @@ module Fog
file = ::File.new(path, 'wb')
if body.is_a?(String)
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)
else
file.write(body.read)