I'm using Path::extension on shared drives with paths like \\mydomain.com\one\two\three
. Because it just finds the last .
and yields what comes after, it returns com\one\two\three
as the extension because three
is a file without an extension.
Shouldn't it first find the last path segment and apply the same logic to that alone?