Is_dir

.is_dir() : To check if the path corresponds to a directory