# File lib/facets/core/filetest/self/root.rb, line 7
def FileTest.root?(dir)
  pth = File.expand_path(dir)
  return true if pth == '/'
  return true if pth =~ /^(\w:)?\/$/
  false
end