Command: FileNames

NEST HelpDesk Command Index NEST Quick Reference
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:
/var/www/debian/nest/nest-simulator-2.20.0/lib/sli/filesystem.sli
NEST HelpDesk Command Index NEST Quick Reference

© 2004 The NEST Initiative