there is a space between ls and -D.

LS is the command to list directory contents. -D is an argument to LS that only lists directories.