Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: How to get the unique canonical path of a given path?by Fletch (Bishop) |
on Jul 13, 2022 at 21:58 UTC ( [id://11145507]=note: print w/replies, xml ) | Need Help?? |
I don’t think you’re going to find much off the shelf because the posix/*nix way of "canonical" path is to expand out and replace symlinks (see Pathname Resolution). I think closest you might get would be rolling something using File::Spec and splitdir to unroll (maybe with glob for tilde handling beforehand), process for dot(s), then concatenate the remaining elements back.
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|