rm_r(list, options = {})
Class Public methods
Options: force noop verbose secure
remove files list[0] list[1]⦠If
list[n] is a directory, removes its all contents recursively.
This method ignores StandardError when
:force option is set.
FileUtils.rm_r Dir.glob('/tmp/*')
FileUtils.rm_r '/', :force => true # :-)
WARNING: This method causes local vulnerability if one of parent
directories or removing directory tree are world writable (including /tmp,
whose permission is