is_dir

is_dir -- tells whether the filename is a directory

Description

bool is_dir(string filename);

Returns true if the filename exists and is a directory.

See also is_file() and is_link().