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

Function dataToDumpFile

lib/core/common.py:1075–1088  ·  view source on GitHub ↗
(dumpFile, data)

Source from the content-addressed store, hash-verified

1073 raise SqlmapSystemException(errMsg)
1074
1075def dataToDumpFile(dumpFile, data):
1076 try:
1077 dumpFile.write(data)
1078 dumpFile.flush()
1079 except IOError as ex:
1080 if "No space left" in getUnicode(ex):
1081 errMsg = "no space left on output device"
1082 logger.error(errMsg)
1083 elif "Permission denied" in getUnicode(ex):
1084 errMsg = "permission denied when flushing dump data"
1085 logger.error(errMsg)
1086 else:
1087 errMsg = "error occurred when writing dump data to file ('%s')" % getUnicode(ex)
1088 logger.error(errMsg)
1089
1090def dataToOutFile(filename, data):
1091 """

Callers 1

dbTableValuesMethod · 0.90

Calls 4

getUnicodeFunction · 0.90
writeMethod · 0.45
flushMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…