Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Path-Class CPAN distribution.

Maintainer(s)' notes

I prefer that bugs & patches are filed on GitHub rather than on RT: https://github.com/kenahoo/Path-Class/issues. Thanks.

Report information
The Basics
Id: 31091
Status: resolved
Priority: 0/
Queue: Path-Class

People
Owner: Nobody in particular
Requestors: davidgaramond [...] gmail.com
Cc:
AdminCc:

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



Subject: realpath
It'd be nice if Path::Class provides an equivalent of Cwd::abs_path (or PHP's realpath(), for name comparison) to make path absolute as well as cleanup path and resolve all symbolic links. This is sometimes useful for file checking. Currently absolute() doesn't even canonicalize stuff like /foo/../bar into /bar.
From: KWILLIAMS [...] cpan.org
I agree, that would be nice. I'll put it in the next release. The reason absolute() and cleanup() don't handle physical cleanup (only logical cleanup) is that they don't even assume the path exists on the disk. And /foo/../bar doesn't always necessarily map to /bar, namely when /foo is a symbolic link. -Ken
This has been completed. -Ken
From: davidgaramond [...] gmail.com
Le Mer. Déc. 05 23:12:51 2007, KWILLIAMS a écrit : Show quoted text
> This has been completed. > > -Ken >
Nice :-) Thanks!
From: davidgaramond [...] gmail.com
Le Jeu. Déc. 06 05:26:04 2007, davidgaramond@gmail.com a écrit : Show quoted text
> Le Mer. Déc. 05 23:12:51 2007, KWILLIAMS a écrit :
> > This has been completed. > > > > -Ken > >
> > Nice :-) Thanks!
Oops, sorry. Didn't realize responding to ticket will automatically reopen it. Dave