Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How to get the unique canonical path of a given path?

by rizzo (Curate)
on Jul 13, 2022 at 23:05 UTC ( [id://11145508]=note: print w/replies, xml ) Need Help??


in reply to How to get the unique canonical path of a given path?

From the question at stackoverflow you cited:
Normalize a pathname by collapsing redundant separators and up-level references so that A//B, A/B/, A/./B and A/foo/../B all become A/B.
Given this task, it makes no sense to start your path with a double dot because the directory above your first one, the one you want to change to, is not known. Same thing with /a/../../b, etc.
  • Comment on Re: How to get the unique canonical path of a given path?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11145508]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found