list directory first for ls command