list
Retrieves a sorted list of paths within the specified directory.
Return
A list of paths within the specified directory, sorted by name. Returns an empty list if an error occurs or the directory is empty.
Parameters
path
The directory path whose contents are to be listed.