call site 6 for path.local.join
apigen/rest/testing/test_rest.py - line 96
93
94
95
96
97
98
99
100
   def test_write_section(self):
       tempdir = temppath.ensure('dirwriter', dir=True)
       dw = self.get_filled_writer(DirWriter, tempdir)
->     fpaths = tempdir.listdir('*.txt')
       assert len(fpaths) == 2
       assert sorted([f.basename for f in fpaths]) == ['bar.txt', 'foo.txt']
       assert _nl(tempdir.join('foo.txt').read()) == 'foo data\n'
       assert _nl(tempdir.join('bar.txt').read()) == 'bar data\n'
path/local/local.py - line 217
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
   def listdir(self, fil=None, sort=None):
       """ list directory contents, possibly filter by the given fil func
               and possibly sorted.
           """
       if isinstance(fil, str):
           fil = common.fnmatch(fil)
       res = []
       for name in self._callex(os.listdir, self.strpath):
->         childurl = self.join(name)
           if fil is None or fil(childurl):
               res.append(childurl)
       if callable(sort):
           res.sort(sort)
       elif sort:
           res.sort()
       return res