http://qs321.pair.com?node_id=711897


in reply to catfile/catdir collapses two leading slashes //

The name of a directory is not the same as its pathname, so why don't you use splitpath and catpath?

-- Frank