[Q] Looking for the Ruby equivalent of this Unix command

Is this:

 File.syscopy(fromName, toName)

the equivalent of this:

 $ cp -p fromName toName

?

I think
require ‘fileutils’

FileUtils.cp from , to, :preserve=>true

···

il Tue, 18 Nov 2003 11:31:16 -0600, Lyle Johnson lyle@users.sourceforge.net ha scritto::

Is this:

File.syscopy(fromName, toName)

the equivalent of this:

$ cp -p fromName toName

?