get directory info, pretty print info