ingydotnet / io-all-pm

All in One Perl IO
http://search.cpan.org/dist/IO-All/
38 stars 20 forks source link

->canonpath should return realpath #34

Closed samuelckaufman closed 10 years ago

samuelckaufman commented 10 years ago

per convo in irc, ->canonpath isn't so canonical, realpath would be a bit more canonical. ( see https://metacpan.org/pod/Cwd ) Ingy's suggestion was that ->canonical should return realpath || current-logic so when realpath returns undef ( ex: /made/up/directory/tree ) it'd just use the current logic.

frioux commented 10 years ago

I started work on this but it looks like Cwd's subroutines never return undef or the empty string. Is there a reason not to just always use the Cwd subroutines or should I use the Cwd subs if they point to a file that exists?

frioux commented 10 years ago

Resolved by 9a2074371fc86b086303b6c2714ab90eab5a2b3e