Example #1
0
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)
Example #2
0
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)
Example #3
0
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)
Example #4
0
 def delete(self):
     self._verify()
     comm.removeItem(self.location())
     self._location = None
Example #5
0
 def delete(self):
     self._verify()
     comm.removeItem(self.location())
     self._location = None