Project

General

Profile

Actions

Bug #13515

closed

Pathname#join doesn't add separator on UNC paths

Added by p0deje (Alex Rodionov) almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]
[ruby-core:80900]

Description

When using Pathname#join on Windows, I have no problems when working with normal paths:

irb(main):008:0> Pathname.new('C:/selenium').join('common') => #<Pathname:C:/selenium/common>

However, when doing the same thing on UNC shares, the path is malformed:

irb(main):009:0> Pathname.new('//vboxsrv/selenium').join('common') => #<Pathname://vboxsrv/seleniumcommon>

As you can see, there is no separator prepending common.

I'm not sure how can I provide a reproducible test script, but let me know if there is anything else I can do to help with issue.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0