Skip to content

absolute paths without drive letter don't work in windows #2387

Closed
@rdp

Description

@rdp

As originally reported

https://jira.codehaus.org/browse/JRUBY-5750

assuming you have an empty file in c:\dev\yo

Dir.chdir("c:\tmp") # works
File.read('/dev/yo')
Errno::ENOENT: No such file or directory - C:/dev/dev/yo
...
File.exist?('/dev/yo')
=> false # should be true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions