method
rmdir
rmdir(p1)
public
Deletes the named directory. Raises a subclass of SystemCallError if the directory isn’t empty.
Register or
log in
to add new notes.
emime -
April 22, 2011
0 thanks
Remove non empty directories
To remove a non empty directory use FileUtils:
Dir.mkdir("test_dir") Dir.mkdir("test_dir/sub_dir") FileUtils.remove_dir("test_dir",true)