kenahoo / Path-Class

Cross-platform path specification manipulation
http://search.cpan.org/dist/Path-Class/
15 stars 28 forks source link

always use canonpath on arguments to splitdir #45

Closed andrewgregory closed 8 years ago

andrewgregory commented 8 years ago

If splitdir is passed an argument with a trailing '/' it will return the empty string as the final component. Calling parent on a Dir object with the trailing empty component will return a new Dir object just without the trailing empty string, which is equivalent to the original rather than the actual parent.

kenahoo commented 8 years ago

Looks great, thanks!