def __hasDir(self, directory):
        full = os.path.join(self.__path, directory)
        if os.path.exists(full):
            if not os.path.isdir(full):
                raise UserError("Expecting %s to be a directory: %s" % full)
            
            return True
        
        return False
dataset/ETHPy150Open zynga/jasy/jasy/core/Project.py/Project.__hasDir/original