With ```Pathname``` you get an path object, not just a string representation of a path. The ```Pathname``` API is actually extensive and useful, but YMMV.