Function
posixpath.dirname

Signature

dirname(p)

Documentation String

Returns the directory component of a pathname