| 1 | package URI::file::QNX; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use parent 'URI::file::Unix'; | ||
| 7 | |||
| 8 | our $VERSION = '5.40'; | ||
| 9 | |||
| 10 | sub _file_extract_path { | ||
| 11 | my ($class, $path) = @_; | ||
| 12 | |||
| 13 | # tidy path | ||
| 14 | $path =~ s,(.)//+,$1/,g; # ^// is correct | ||
| 15 | $path =~ s,(/\.)+/,/,g; | ||
| 16 | $path = "./$path" if $path =~ m,^[^:/]+:,,; # look like "scheme:" | ||
| 17 | $path; | ||
| 18 | } | ||
| 19 | |||
| 20 | 1; |