File.directory? returns false for directories inside a jar
----------------------------------------------------------

                 Key: JRUBY-2289
                 URL: http://jira.codehaus.org/browse/JRUBY-2289
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1
         Environment: JRuby head, OSX 10.5
            Reporter: David Koontz


This code is located in a .rb file that is bundled up along with some 
subdirectories into a jar file.

Dir.glob(File.expand_path(File.dirname(__FILE__) + "/**")).each do |directory|
  $LOAD_PATH << directory if File.directory?(directory) # always false
end

My workaround is to check for the presence of a file extension which works for 
my specific case but is obviously not a good general purpose workaround.

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