Path.with_name#

Path.with_name(name)#

Return a new path with the file name changed.