Method: FileUtils.remove_dir

Defined in:
lib/fileutils.rb

.remove_dir(path, force = false) ⇒ Object

Recursively removes the directory entry given by path, which should be the entry for a regular file, a symbolic link, or a directory.

Argument path should be interpretable as a path.

Optional argument force specifies whether to ignore raised exceptions of StandardError and its descendants.

Related: methods for deleting.


1493
1494
1495
# File 'lib/fileutils.rb', line 1493

def remove_dir(path, force = false)
  remove_entry path, force   # FIXME?? check if it is a directory
end