std-directory-files


Synopsis

(std-directory-files <fspec>)

Description

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.

Examples

(std-directory-files "/mydir/")  
=> ("." ".." "test.lsp")

Arguments

fspec: a filename specifier which might include wildcards.

Return Value

A list of filenames (base name + extension only).

Side Effects

It might shell out to the operating system, if no native function can be used. (plain alisp, no fileext)

Module

(std-require 'STDFILE)

Defined in STDFILE