listDir


Description:

public static List<string>? listDir (Path path)

Lists the entries in a directory.

Example:

    var path = new Path ("/tmp");
var entries = Files.listDir (path);

Parameters:

path

path to the directory.

Returns:

a list of entry names, or null if the path is not a directory.