Nyquist / XLISP 2.0  - 
Contents |
Tutorials |
Examples |
Reference
listdir
  | Type: | - | function (subr) | 
  | Source: | - | xlfio.c | 
Syntax
- (listdir path)
- path - the path of the directory to be listed
 returns -  list of filenames in the directory
Description
The 'listdir' function returns a list with all filenames in the directory
or NIL if the directory could not be found.
Examples
(let ((filenames (sort (listdir ".") #'string-lessp)))
  (dolist (filename filenames)
    (print filename)))
See also setdir.
  Back to Top
Nyquist / XLISP 2.0  - 
Contents |
Tutorials |
Examples |
Reference