FileNames


Name:
FileNames - return contents of current working directory
Synopsis:
string FileNames -> array  
regex FileNames -> array
Examples:
(.*) FileNames -> all files of current directory  
Remember that POSIX regex and those used by ls are not
necessarily the same !
Description:
FileNames reads contents of current working directory  
via POSIX commands. Only files matching the regular expression
mask set in string/regex are used.
Parameters:
string : a mask converted to the regex  
regex : the regular expression used to filter files
array : an array of strings containing matched files
Bugs:
see remarks  
Remarks:
Sorting of files done by :sort, a dummy UNIX sorter which  
is far from protable!
Author:
Hehl  
FirstVersion:
Oct 12th 1999  
SeeAlso: Source:
/home/graber/work-nest/nest-git/nest-simulator/lib/sli/filesystem.sli