()
Create the file directory.
Create the file directory.
Create the file directory .
def _createFilesDir():
    """
    Create the file directory.
    """

    if not conf.rFile:
        return

    conf.filePath = paths.SQLMAP_FILES_PATH % conf.hostname

    if not os.path.isdir(conf.filePath):
        try:
            os.makedirs(conf.filePath, 0755)
        except OSError, ex:
            tempDir = tempfile.mkdtemp(prefix="sqlmapfiles")
            warnMsg = "unable to create files directory "
            warnMsg += "'%s' (%s). " % (conf.filePath, getUnicode(ex))
            warnMsg += "Using temporary directory '%s' instead" % tempDir
            logger.warn(warnMsg)

            conf.filePath = tempDir
def _createFilesDir ( ) : if not conf . rFile : return conf . filePath = paths . SQLMAP_FILES_PATH % conf . hostname if not os . path . isdir ( conf . filePath ) : try : os . makedirs ( conf . filePath , 0755 ) except OSError , ex : tempDir = tempfile . mkdtemp ( prefix = "sqlmapfiles" ) warnMsg = "unable to create files directory " warnMsg += "'%s' (%s). " % ( conf . filePath , getUnicode ( ex ) ) warnMsg += "Using temporary directory '%s' instead" % tempDir logger . warn ( warnMsg ) conf . filePath = tempDir