class FakeFS::Pathname

def rmtree

See FileUtils.rm_r. Deletes a directory and all beneath it.
def rmtree
  # The name "rmtree" is borrowed from File::Path of Perl.
  # File::Path provides "mkpath" and "rmtree".
  require 'fileutils'
  FileUtils.rm_r(@path)
  nil
end