Skip to content

File.file?( "uri:classloader:/path/") can be true which is wrong  #3342

@mkristian

Description

@mkristian
java -jar jruby-complete.jar -e 'p File.file?("uri:classloader:/META-INF/jruby.home/")'
true

which is clearly directory and not a file. and

java -jar jruby-complete.jar -e 'p File.file?("uri:classloader:/META-INF/jruby.home")'
false

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions