call site 3 for path.local.check
apigen/rest/testing/test_rest.py - line 109
108
109
110
111
112
   def test_write_section(self):
->     tempfile = temppath.ensure('filewriter', file=True)
       fw = self.get_filled_writer(FileWriter, tempfile)
       data = tempfile.read()
       assert len(data)
path/local/local.py - line 309
299
300
301
302
303
304
305
306
307
308
309
310
311
   def ensure(self, *args, **kwargs):
       """ ensure that an args-joined path exists (by default as
               a file). if you specify a keyword argument 'dir=True'
               then the path is forced to be a directory path.
           """
       p = self.join(*args)
       if kwargs.get('dir', 0):
           return p._ensuredirs()
       else:
           p.dirpath()._ensuredirs()
->         if not p.check(file=1):
               p.write("")
           return p