vl-file-directory-p
 
 
 

Determines if a file name refers to a directory

(vl-file-directory-p filename)

Arguments

filename

A string containing a file name. If you do not specify a full path name, vl-file-directory-p searches only the AutoCAD default drawing directory.

Return Values

T, if filename is the name of a directory; nil if it is not.

Examples

_$ (vl-file-directory-p "sample")
T
_$ (vl-file-directory-p "yinyang")
nil
_$ (vl-file-directory-p "c:/My
Documents")
T
_$ (vl-file-directory-p "c:/My
Documents/visuallisp/yinyang.lsp")
nil