diff --git a/lib/fog/local/models/storage/file.rb b/lib/fog/local/models/storage/file.rb index 6e67a025c..82bfa529d 100644 --- a/lib/fog/local/models/storage/file.rb +++ b/lib/fog/local/models/storage/file.rb @@ -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)