is_dir

is_dir — determines if a file is a directory.

Syntax

is_dir (path)

		

Arguments

path

A character string defining a relative or absolute file path in this file system.

Returns

t if the named file exists and is a directory, otherwise nil.

Description

This function checks if a file is a directory. Relative file paths are relative to the current working directory.

Example

Gamma> is_dir("/home/robert/w/devel/lisp");
t
Gamma> is_dir("../../doc");
t
Gamma> is_dir("doc");
nil
Gamma>  
		

See Also

is_file