Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Path-Tiny-0.028 Path::Tiny on win32 turns C:/ or C:\ into C: but those aren't equivalent #49

Closed
dfortner opened this Issue · 3 comments

2 participants

@dfortner

http://perlmonks.org/?node_id=1049892 # Path-Tiny-0.028 Path::Tiny on win32 turns C:/ or C:\ into C: / absolute / realpath are broken

Editing sub path to comment out the following line seems to fix it :)

$path =~ s{/$}{} if $path ne "/"; # hack to make splitpath give us a basename

@dagolden
Owner

Thanks for the report. What version of Perl? What version of File::Spec and Cwd?

@dagolden
Owner

(as asked on Perlmonks)

Is there any reason to allow a raw volume like "C:" (no trailing slash) or "\server\share" as a Path::Tiny "path"? Or should I be fixing those to have a trailing slash so they are properly understood as referencing the root directory of those volumes?

@dagolden
Owner

Fixed and released to CPAN as 0.029

@dagolden dagolden closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.