is_dir

 bool is_dir ( string $filename ) 

説明

Tells whether the given filename is a directory.

戻り値

Returns TRUE if the filename exists and is a directory, FALSE otherwise.