def _setHashDB():
 if (not conf.hashDBFile):
  conf.hashDBFile = (conf.sessionFile or os.path.join(conf.outputPath, 'session.sqlite'))
 if os.path.exists(conf.hashDBFile):
  if conf.flushSession:
   try:
    os.remove(conf.hashDBFile)
    logger.info('flushing session file')
   except OSError as msg:
    errMsg = ('unable to flush the session file (%s)' % msg)
    raise SqlmapFilePathException(errMsg)
 conf.hashDB = HashDB(conf.hashDBFile)

def _setHashDB ( ) : if ( not conf . hashDBFile ) : conf . hashDBFile = ( conf . sessionFile or os . path . join ( conf . outputPath , 'session.sqlite' ) ) if os . path . exists ( conf . hashDBFile ) : if conf . flushSession : try : os . remove ( conf . hashDBFile ) logger . info ( 'flushing session file' ) except OSError as msg : errMsg = ( 'unable to flush the session file (%s)' % msg ) raise SqlmapFilePathException ( errMsg ) conf . hashDB = HashDB ( conf . hashDBFile )
check and set the hashdb sqlite file for query resume functionality .