Quickly get directory information.