Namespace File

This commit is contained in:
Jamie Paton 2014-02-24 23:09:38 -08:00
parent 4ffca659cc
commit 9890657124
1 changed files with 1 additions and 1 deletions

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)