def isdir(s):
    try:
        st = os.stat(s)
    except os.error:
        return False
    return stat.S_ISDIR(st.st_mode)
Return true if the pathname refers to an existing directory.
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/genericpath.py/isdir