def getIdPaths(self, path=None, idPaths=None):
        if path is None:
            path = ''
        if idPaths is None:
            idPaths = []
        extension = '.'+self.C.EXTENSION_TXT

        try:
            for name in os.listdir(self.root + path):
                filePath = path + name
                if name and '._' in name[0]: # Skip all files and articles that start with . or _
                    continue
                if os.path.isdir(self.root + filePath):
                    self.getIdPaths(filePath+'/', idPaths)
                elif not name.endswith(extension):
                    continue
                else:
                    name = name.replace(extension, '')
                    idPaths.append((name, filePath))
        except Exception, e:
            print e
        return idPaths
dataset/ETHPy150Open petrvanblokland/Xierpa3/xierpa3/adapters/textilefileadapter.py/TextileFileAdapter.getIdPaths/swapped operands of `in`