Dir::entries doesn't work within a jar
--------------------------------------

                 Key: JRUBY-3897
                 URL: http://jira.codehaus.org/browse/JRUBY-3897
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.3.1
            Reporter: David Calavera


When I execute Dir::entries with the path to a jar file jruby raises an error 
with the message "No such directory" but executing File.directory? with the 
same path it returns true. Example executed from the jruby source code 
directory:

jruby -e 'puts File.directory?("file:lib/jruby-complete.jar!/META-INF")'
true

jruby -e 'puts Dir.entries("file:lib/jruby-complete.jar!/META-INF")'
-e:1: No such file or directory - No such directory (Errno::ENOENT)

-- 
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


Reply via email to