std-directory-files | ![]() |
std-directory-files returns a list of all files and directories matching fspec.
The difference to std-glob-files is that it doesn't return any path specifier and it does return diretories as well.
Similar to the Visual Lisp / VitalLisp function (vl-directory-files [directory pattern directories])
but with one required argument.
Implemented as (vl-directory-files (std-filename-directory fspec) (std-filename fspec))
to keep it compatible. For other platforms and releases before R12 it has to use external libraries or a shell call.
(std-directory-files "/mydir/")
=> ("." ".." "test.lsp")
fspec: a filename specifier which might include wildcards.
A list of filenames (base name + extension only).
It might shell out to the operating system, if no native function can be used. (plain alisp, no fileext)
(std-require 'STDFILE)
Defined in STDFILE