Ejemplo n.º 1
0
 def remove(self):
     try:
         self._dorpc(fcall.Tremove())
     finally:
         try:
             self.close()
         except Exception:
             pass
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
 def remove(self):
     try:
         self._dorpc(fcall.Tremove())
     finally:
         self.close()
Ejemplo n.º 4
0
    def remove(self, path):
        path = self._splitpath(path)

        with self._walk(path) as fid:
            self._dorpc(fcall.Tremove(fid=fid))
Ejemplo n.º 5
0
 def next(fid, exc, tb):
     self._dorpc(fcall.Tremove(fid=fid), callback, fail)