mutapath.Path.dirname

Path.dirname[source]

Returns the directory component of a pathname