is_dir
spatie/ignition
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Tells whether the filename is a directory
<?php is_dir
(
string $filename
):
bool