def isdir ( path , * * kwargs ) : import os . path return os . path . isdir ( path , * * kwargs )
isdir not working in python
Check if * path * is a directory
def isdir(path, **kwargs):
    """Check if *path* is a directory"""
    import os.path
    return os.path.isdir(path, **kwargs)