Stefan Lang
8/6/2008 11:53:00 PM
2008/8/7 Bob Miner <bobminer@lobo.net>:
> Hi,
> I'm tryin to have Ruby copy some files so I don't have to :D
>
> I can make the Directories, but apparently I need FTOOLS to actually
> copy some files from hither to yon.
>
> I can't seem to find FTOOLS.....anybody know where to get it? And
> then....
> where do I put it so Ruby can "see & use" it.
>
> OR....
>
> Is there a different/better way to copy files than FTOOLS?
Use FileUtils:
require "fileutils"
FileUtils.cp src, dest
ri has lots of documentation about it!
Stefan