Return True if the path points to a directory (or a symbolic link pointing to a directory), False if it points to another kind of file.
Path.is_dir()