1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #200: Image now uses fileutils instead of ftools

This commit is contained in:
Ruben S. Montero 2010-07-17 01:59:17 +02:00
parent 54e8dfd1af
commit d89cc91687

View File

@ -1,5 +1,5 @@
require 'OpenNebula/Pool'
require 'ftools'
require 'fileutils'
module OpenNebula
class Image < PoolElement
@ -190,7 +190,7 @@ module OpenNebula
return OpenNebula::Error.new("copy Image: missing parameters.")
end
if !File.copy(path, source)
if !FileUtils.copy(path, source)
return OpenNebula::Error.new("copy Image: in File.copy")
end