is_dir

is_dir -- ファイルがディレクトリかどうかを知る

説明

bool is_dir(string filename);

filenameが存在して、かつそれが ディレクトリであれば TRUE を返します。

参照:is_file(), is_link()