= private = protected
chop_basename(path)
chop_basename(path) -> [pre-basename, basename] or nil
# File lib/pathname.rb, line 285 def chop_basename(path) base = File.basename(path) if /\A#{SEPARATOR_PAT}?\z/ =~ base return nil else return path[0, path.rindex(base)], base end end