Does File or FTools support rm -rf?

Hi

I am looking for the Ruby equivalent of the system call:

system("rm -rf ")

Does is exist?

Thanks

···


Jim Freeze

Absurdity, n.:
A statement or belief manifestly inconsistent with one’s own
opinion.
– Ambrose Bierce, “The Devil’s Dictionary”

Try

require "fileutils"
FileUtils.rm_rf "some-dir"

/Johan Holmberg

···

On Wed, 16 Apr 2003, Jim Freeze wrote:

I am looking for the Ruby equivalent of the system call:

system(“rm -rf ”)

Does is exist?