def _createDumpDir():
 if ((not conf.dumpTable) and (not conf.dumpAll) and (not conf.search)):
  return
 conf.dumpPath = (paths.SQLMAP_DUMP_PATH % conf.hostname)
 if (not os.path.isdir(conf.dumpPath)):
  try:
   os.makedirs(conf.dumpPath, 493)
  except OSError as ex:
   tempDir = tempfile.mkdtemp(prefix='sqlmapdump')
   warnMsg = 'unable to create dump directory '
   warnMsg += ("'%s' (%s). " % (conf.dumpPath, getUnicode(ex)))
   warnMsg += ("Using temporary directory '%s' instead" % tempDir)
   logger.warn(warnMsg)
   conf.dumpPath = tempDir

def _createDumpDir ( ) : if ( ( not conf . dumpTable ) and ( not conf . dumpAll ) and ( not conf . search ) ) : return conf . dumpPath = ( paths . SQLMAP_DUMP_PATH % conf . hostname ) if ( not os . path . isdir ( conf . dumpPath ) ) : try : os . makedirs ( conf . dumpPath , 493 ) except OSError as ex : tempDir = tempfile . mkdtemp ( prefix = 'sqlmapdump' ) warnMsg = 'unable to create dump directory ' warnMsg += ( "'%s' (%s). " % ( conf . dumpPath , getUnicode ( ex ) ) ) warnMsg += ( "Using temporary directory '%s' instead" % tempDir ) logger . warn ( warnMsg ) conf . dumpPath = tempDir
create the dump directory .