The name of a directory is not the same as its pathname, so why don't you use splitpath and catpath?
-- Frank
In reply to Re: catfile/catdir collapses two leading slashes //
by haoess
in thread catfile/catdir collapses two leading slashes //
by repellent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |