directory.rb shorter