Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
This is easy to do if you just want to handle ".." in paths. Not too much code is needed - usually just let the shell resolve the path. But if you want to handle symlinks in Unix, then you are in a world of confusion.
If you want to demand a GNU environment, there is a GLIBC function called something like "cannonical_path" which will do all the work for you. Otherwise... ouch.
___________________ In reply to Re: How to get a true canonical path
by jepri
|
|