The commands we've both given are slightly different:
Mine will give you each filename on a separate line without any quotes.
W0lfdale's will give you all the filenames on a single line, and filenames that contain spaces will be quoted.
Which works best depends on what you're going to do with the names.