ICI Modules: sys: dir


Modules by name : by type

Synopsis

array = sys.dir(string [, regexp ] [, string])

Description

Reads the directory named in its in first argument and returns an array of the names, matching the regular expression if given, of the given types of objects, if specified. A second string argument specifies the types of objects to be returned, either "f" for only normal files, "d" for directories or "a" for all objects (devices, named pipes, etc...), the default is "f", return only the names of the files.

No ordering is defined and multiple calls may return names in different orders according to the whims of the operating system.