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

Method _createLocalBatchFile

lib/takeover/registry.py:51–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 )
50
51 def _createLocalBatchFile(self):
52 self._batPathFp = openFile(self._batPathLocal, "w")
53
54 if self._operation == REGISTRY_OPERATION.READ:
55 lines = self._batRead
56 elif self._operation == REGISTRY_OPERATION.ADD:
57 lines = self._batAdd
58 elif self._operation == REGISTRY_OPERATION.DELETE:
59 lines = self._batDel
60
61 for line in lines:
62 self._batPathFp.write(line)
63
64 self._batPathFp.close()
65
66 def _createRemoteBatchFile(self):
67 logger.debug("creating batch file '%s'" % self._batPathRemote)

Callers 1

Calls 3

openFileFunction · 0.90
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected