list
Returns the children of dir. The returned list is sorted using natural ordering. If dir is a relative path, the returned elements will also be relative paths. If it is an absolute path, the returned elements will also be absolute paths.
Note that a path does not need to be a directory for this function to return successfully. For example, mounted storage devices may have child files but do not identify themselves as directories.