def safe_remove(path): try: if (path is not None) and os.path.lexists(path): comm.removeItem(path) except Exception, e: logger.debug("Unable to delete: %s" % path) logger.exception(e)
def migFieldActions_4_1(infile, outfile, isDryRun=False): ''' THIS FUNCTION SHOULD NOT BE CALLED MANUALLY. IT IS USED BY THE MIGRATION SCRIPT. ''' migrateFieldActions(infile, outfile) comm.removeItem(infile, isDryRun)
def delete(self): self._verify() comm.removeItem(self.location()) self._location = None