def remove(self): try: self._dorpc(fcall.Tremove()) finally: try: self.close() except Exception: pass
def aremove(self, callback=True, fail=None): def next(resp, exc, tb): self.close() if exc and fail: self.respond(fail, resp and True, exc, tb) else: self.respond(callback, resp and True, exc, tb) self._dorpc(fcall.Tremove(), next)
def remove(self): try: self._dorpc(fcall.Tremove()) finally: self.close()
def remove(self, path): path = self._splitpath(path) with self._walk(path) as fid: self._dorpc(fcall.Tremove(fid=fid))
def next(fid, exc, tb): self._dorpc(fcall.Tremove(fid=fid), callback, fail)