call site 0 for path.svnwc.check
path/svn/testing/test_urlcommand.py - line 64
62
63
64
65
66
67
68
69
70
71
72
73
74
   def test_export(self):
       repo, wc = getrepowc('test_export_repo', 'test_export_wc')
->     foo = wc.join('foo').ensure(dir=True)
       bar = foo.join('bar').ensure(file=True)
       bar.write('bar\n')
       foo.commit('testing something')
       exportpath = py.test.ensuretemp('test_export_exportdir')
       url = py.path.svnurl(repo + '/foo')
       foo = url.export(exportpath.join('foo'))
       assert foo == exportpath.join('foo')
       assert isinstance(foo, py.path.local)
       assert foo.join('bar').check()
       assert not foo.join('.svn').check()
path/svn/wccommand.py - line 167
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
   def ensure(self, *args, **kwargs):
       """ ensure that an args-joined path exists (by default as
               a file). if you specify a keyword argument 'directory=True'
               then the path is forced  to be a directory path.
           """
       try:
           p = self.join(*args)
           if p.check():
               if p.check(versioned=False):
                   p.add()
               return p 
           if kwargs.get('dir', 0):
->             return p._ensuredirs()
           parent = p.dirpath()
           parent._ensuredirs()
           p.write("")
           p.add()
           return p
       except:
           error_enhance(sys.exc_info())
path/svn/wccommand.py - line 149
147
148
149
150
151
152
153
   def _ensuredirs(self):
       parent = self.dirpath()
->     if parent.check(dir=0):
           parent._ensuredirs()
       if self.check(dir=0):
           self.mkdir()
       return self