MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / _createDumpDir

Function _createDumpDir

lib/core/target.py:628–648  ·  view source on GitHub ↗

Create the dump directory.

()

Source from the content-addressed store, hash-verified

626 conf.filePath = tempDir
627
628def _createDumpDir():
629 """
630 Create the dump directory.
631 """
632
633 if not conf.dumpTable and not conf.dumpAll and not conf.search:
634 return
635
636 conf.dumpPath = safeStringFormat(paths.SQLMAP_DUMP_PATH, conf.hostname)
637
638 if not os.path.isdir(conf.dumpPath):
639 try:
640 os.makedirs(conf.dumpPath)
641 except Exception as ex:
642 tempDir = tempfile.mkdtemp(prefix="sqlmapdump")
643 warnMsg = "unable to create dump directory "
644 warnMsg += "'%s' (%s). " % (conf.dumpPath, getUnicode(ex))
645 warnMsg += "Using temporary directory '%s' instead" % getUnicode(tempDir)
646 logger.warning(warnMsg)
647
648 conf.dumpPath = tempDir
649
650def _configureDumper():
651 conf.dumper = dumper

Callers 1

_createTargetDirsFunction · 0.85

Calls 2

safeStringFormatFunction · 0.90
getUnicodeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…