The is_dir method checks if the supplied path is a directory.
is_dir( path )
| Argument | Description | 
|---|---|
| path | (string) The path to check. | 
(Boolean). Returns true if the supplied path is a directory, false otherwise.
|  |