def clean(self, force=False): for aname, a in list(self._archives.items()): a.clean(force=force) del self._archives[aname] # Probably we should not rely on _made_path and not bother if persistent removing it # if ((not self.persistent) or force) and self._made_path: # lgr.debug("Removing the entire archives cache under %s", self.path) # rmtemp(self.path) if (not self.persistent) or force: lgr.debug("Removing the entire archives cache under %s", self.path) rmtemp(self.path)
def teardown_class(cls): cls._hpath.stop() rmtemp(cls._hpath.path)
def teardown(self): assert_equal(self.pwd, getpwd()) self.annex.precommit() # so we close any outstanding batch process etc rmtemp(self.annex.path)
def teardown_class(cls): cls._hpath.stop() rmtemp(cls._hpath.path)
def teardown(self): # so we close any outstanding batch process etc self.annex.precommit() rmtemp(self.ds.path)