T
Tara Keane
Hi there,
I created a test folder with two sub-folders inside and now I want to
delete the main folder.
In irb I typed:
require 'fileutils'
FileUtils.rm_f("test")
I'm running the command from C: and the folder is directly off C:
I assumed it should just delete but nothing's happening...
I know Dir.delete won't delete a folder if there is something in it. I
want to figure out how to delete the folder in one command rather than
having to go through it deleting all the sub folders one by one. I'm
sure there's a way to do this?
I created a test folder with two sub-folders inside and now I want to
delete the main folder.
In irb I typed:
require 'fileutils'
FileUtils.rm_f("test")
I'm running the command from C: and the folder is directly off C:
I assumed it should just delete but nothing's happening...
I know Dir.delete won't delete a folder if there is something in it. I
want to figure out how to delete the folder in one command rather than
having to go through it deleting all the sub folders one by one. I'm
sure there's a way to do this?