File.directory? returns false for directories within a jar
----------------------------------------------------------
Key: JRUBY-5739
URL: http://jira.codehaus.org/browse/JRUBY-5739
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6.1
Environment: Ubuntu 10.04
Reporter: John-Mason P. Shackelford
While Dir.glob handles paths within a jar appropriately, File.directory?
doesn't. See below.
{code}
shacjo@iowacwl-3z9jjk1:/tmp$ irb
jruby-1.6.1 :001 >
File.directory?('file:/tmp/conan-smoke-test.jar!/conan-smoke-test/features/support/')
=> false
jruby-1.6.1 :002 >
Dir.glob('file:/tmp/conan-smoke-test.jar!/conan-smoke-test/features/support/*')
=>
["file:/tmp/conan-smoke-test.jar!/conan-smoke-test/features/support/env.rb",
"file:/tmp/conan-smoke-test.jar!/conan-smoke-test/features/support/paths.rb",
"file:/tmp/conan-smoke-test.jar!/conan-smoke-test/features/support/pickle.rb",
"file:/tmp/conan-smoke-test.jar!/conan-smoke-test/features/support/selectors.rb"]
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email