Skip Menu |

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id: 13609
Status: rejected
Priority: 0/
Queue: PathTools

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Consider adding collapse() for xx/../yy -> yy transform
Consider adding a public method which performs the tricky xx/../yy -> yy transform. This allows canonpath() to remain pure and not guess if its safe or desirable to do this (Win32->canonpath currently collapses ..). Let the user decide what they want. rt.perl.org 27052 already contains a patch which adds collapse as a private method. All that would be required is to make it public and document it. And probably also think of a better name.
Rejecting this (6 years later), on the grounds that Path::Class has such a thing now, called resolve().