v4.0.0
Given a path string, return a generator that walks up the path, emitting each dirname.
Source code on GitHub