`ls` files under the `dir` synchronously.