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

Function _setWriteFile

lib/core/option.py:653–669  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

651 raise SqlmapFilePathException(errMsg)
652
653def _setWriteFile():
654 if not conf.fileWrite:
655 return
656
657 debugMsg = "setting the write file functionality"
658 logger.debug(debugMsg)
659
660 if not os.path.exists(conf.fileWrite):
661 errMsg = "the provided local file '%s' does not exist" % conf.fileWrite
662 raise SqlmapFilePathException(errMsg)
663
664 if not conf.fileDest:
665 errMsg = "you did not provide the back-end DBMS absolute path "
666 errMsg += "where you want to write the local file '%s'" % conf.fileWrite
667 raise SqlmapMissingMandatoryOptionException(errMsg)
668
669 conf.fileWriteType = getFileType(conf.fileWrite)
670
671def _setOS():
672 """

Callers 1

initFunction · 0.85

Calls 4

getFileTypeFunction · 0.90
debugMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…