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:
parent
54e8dfd1af
commit
d89cc91687
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user