os.path.isdir(path) ¶
Return True if path is an existing directory. This follows symbolic links, so both islink() and isdir() can be true for the same path.