std-probe-file


Synopsis

(std-probe-file <fname>)

Description

STD-PROBE-FILE checks if the file exists. It is similar to std-file-exist-p and implemented to be compatible to Common Lisp. It returns the filename of the existing file or nil. On filesystems supporting symbolic links and revisions (Unix, NT 5.0 with DFS) the true name should be returned which is not necessarily the given argument.

Examples

(std-probe-file "d:/acad/test.lsp")  => "d:\\acad\\test.lsp" or nil
(std-probe-file "test.lsp")  => "test.lsp" or nil

Arguments

fname: a string. A partial or fully qualified filename specifier.

Return Value

The existing filename or nil.

Side Effects

None.

Module

(std-require 'STDFILE)

Defined in STDFILE