list
Lists contents of a directory. Children are sorted by name. The listing is not recursive.
Return
List of paths contained in the directory, sorted by name. Returns an empty list if the directory is empty.
Parameters
directory
The directory path to list.
Throws
if directory is not a directory or doesn't exist.
IOException
if an I/O error occurs during listing.