sstephenson/hike — pull request #21 by pmahoney (2012-10-25 21:29:03+00:00)
Title: Test for directory existence explicitly to avoid JRuby performance issue

Another little patch to avoid using exceptions that are not JRuby's strong point.

Discovered when profiling 'assets:precompile'. In one particular rails app, profiler shows JRuby internals getStackTrace() consuming about 20% of cpu time with 25% of that attributed to `Hike::Index#entries`.

See [netbeans profiler trace](http://i.imgur.com/RDllK.png).