On this topic, I think paths as strings are well understood and using Pathname has more costs than benefits.