Switching from passing in a File to a Dir

It appears that using JRuby File.new(a_directory) throws a Permission denied
exception. This code works fine with File.new on MRI/YARV.