Read Me - Common Public License V1.0 - Copyright Notice(©)

list


>>-list--------------------------------------------------------><

Returns an array of files/directories names which are immediate childrens of the directory denoted by the absolute path of the receiver object. The order in which the names are returned is dependent on the file system (not necessarily alphabetic order). The special names "." and ".." are not returned.

The result is an array of strings. If the receiver object is not a directory then the result is .nil.

Class FILE - list method


names = .File~new("c:\program files\oorexx\samples")~list
say names -- an Array
say names~toString
/* Possible output */
api
ccreply.rex
complex.rex
drives.rex
factor.rex
(etc...)

Read Me - Common Public License V1.0 - Copyright Notice(©)