is_dir
(PHP 3, PHP 4, PHP 5)
is_dir -- 判断给定文件名是否是一个目录
说明
bool is_dir ( string filename )如果文件名存在并且为目录则返回 TRUE。如果 filename 是一个相对路径,则按照当前工作目录检查其相对路径。