def _createTemporaryDirectory():
 try:
  if (not os.path.isdir(tempfile.gettempdir())):
   os.makedirs(tempfile.gettempdir())
 except IOError as ex:
  errMsg = 'there has been a problem while accessing '
  errMsg += ("system's temporary directory location(s) ('%s'). Please " % getSafeExString(ex))
  errMsg += 'make sure that there is enough disk space left. If problem persists, '
  errMsg += "try to set environment variable 'TEMP' to a location "
  errMsg += 'writeable by the current user'
  raise SqlmapSystemException, errMsg
 if ('sqlmap' not in (tempfile.tempdir or '')):
  tempfile.tempdir = tempfile.mkdtemp(prefix='sqlmap', suffix=str(os.getpid()))
 kb.tempDir = tempfile.tempdir
 if (not os.path.isdir(tempfile.tempdir)):
  os.makedirs(tempfile.tempdir)

def _createTemporaryDirectory ( ) : try : if ( not os . path . isdir ( tempfile . gettempdir ( ) ) ) : os . makedirs ( tempfile . gettempdir ( ) ) except IOError as ex : errMsg = 'there has been a problem while accessing ' errMsg += ( "system's temporary directory location(s) ('%s'). Please " % getSafeExString ( ex ) ) errMsg += 'make sure that there is enough disk space left. If problem persists, ' errMsg += "try to set environment variable 'TEMP' to a location " errMsg += 'writeable by the current user' raise SqlmapSystemException , errMsg if ( 'sqlmap' not in ( tempfile . tempdir or '' ) ) : tempfile . tempdir = tempfile . mkdtemp ( prefix = 'sqlmap' , suffix = str ( os . getpid ( ) ) ) kb . tempDir = tempfile . tempdir if ( not os . path . isdir ( tempfile . tempdir ) ) : os . makedirs ( tempfile . tempdir )
creates temporary directory for this run .