def curdir(self):
        l = self.pathList()
        if l[-1] != '':
            l[-1] = ''
        return self._pathMod(l, self.queryList(0))
validate against an existing table
dataset/ETHPy150Open twisted/nevow/nevow/url.py/URL.curdir--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/io/pytables.py/Table.validate