Exemplo n.º 1
0
 def delfile(self, file):
     if self.verb:
         print "Deleting file %s" % file
     fullfile = os.path.join(self.wcpath, file)
     if os.path.isfile(fullfile):
         os.unlink(fullfile)
     else:
         util.safeexec("rm", ['-rf', fullfile])
Exemplo n.º 2
0
 def delfile(self, file):
     if self.verb:
         print "Deleting file %s" % file
     fullfile = os.path.join(self.wcpath, file)
     if os.path.isfile(fullfile):
         os.unlink(fullfile)
     else:
         util.safeexec("rm", ['-rf', fullfile])
Exemplo n.º 3
0
 def cleanup(self):
     if not (self.tmpdir is None):
         util.safeexec("rm", ["-rf", self.tmpdir])
         self.tmpdir = None
Exemplo n.º 4
0
 def cleanup(self):
     if not (self.tmpdir is None):
         util.safeexec("rm", ["-rf", self.tmpdir])
         self.tmpdir = None