Don't use Pathname any more, it's use has been deprecated.