std-findfile-paths


Synopsis

(std-findfile-paths <fspec> <path-lst>)

Description

std-findfile-paths searches for the filename in all directories of the argument path-lst, which is normally the return value of (std-acad-library-paths) or its extended with a private application directory.

It searches for fspec in each directory for the given path-lst argument and returns the first matching filename.

If fspec contains an absolute path it searches only in this path and ignores the path-lst argument. If fspec contains a relative path it adds this relative path to each element of path-lst.

Example

(std-findfile-paths "MYAPP.LSP"
(cons *my-appdir* (std-acad-library-paths)))

=> searches first in the appdir and then in the library path

Arguments

fspec: a filename specifier which might include wildcards and a path.

path-lst: a list of paths, with or without ending slash.

Return Value

The first found matching filename.

Side Effects

None.

Module

(std-require 'STDFILE)

Defined in STDFILE