joyent/node — pull request #5704 by riga (2013-06-16 11:29:13+00:00)
Title: path: add depth argument to dirname (recursion); update path api doc

path.dirname('/foo/bar/baz/asdf/quux')
// returns
'/foo/bar/baz/asdf'

path.dirname('/foo/bar/baz/asdf/quux', 2)
// returns
'/foo/bar/baz'