If dir is empty, use read-all-inodes listing method, otherwise read only names and...