def RemoveDirectory(rebalance):
 loc = data_store.DB.Location()
 if (not os.path.exists(loc)):
  return False
 if (not os.path.isdir(loc)):
  return False
 tempdir = _GetTransactionDirectory(loc, rebalance.id)
 try:
  if tempdir.startswith(loc):
   shutil.rmtree(tempdir)
 except OSError:
  pass

def RemoveDirectory ( rebalance ) : loc = data_store . DB . Location ( ) if ( not os . path . exists ( loc ) ) : return False if ( not os . path . isdir ( loc ) ) : return False tempdir = _GetTransactionDirectory ( loc , rebalance . id ) try : if tempdir . startswith ( loc ) : shutil . rmtree ( tempdir ) except OSError : pass
remove temporary directory of the given rebalance object .