[ruby] delete folder, easy way

it’s a ruby question, i posted here 'cause you have to make an account
to post on ruby section.

is there an easy way in ruby to delete a folder which is not empty?

Dir.delete( folder ) deletes an empty folder, raises error otherwise.

Hi Mike

check out FileUtils#rm_r

Thibaut

[blog] http://www.dotnetguru2.org/tbarrere

If you’re on *nix, rm -rf #{path_to_folder} should work fine.

Vish