class FakeFS::Pathname

def trailing_separator?(path)

trailing_separator?(path) -> bool
def trailing_separator?(path)
  if (r = chop_basename(path))
    pre, basename = r
    pre.length + basename.length < path.length
  else
    false
  end
end