()
Create the dump directory.
Create the dump directory.
Create the dump directory .
def _createDumpDir():
    """
    Create the dump directory.
    """

    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, 0755)
        except OSError, 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 , 0755 ) except OSError , 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