MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / write_tempfile

Function write_tempfile

edrav2/eprj/jsoncpp/makerelease.py:172–179  ·  view source on GitHub ↗
(content, **kwargs)

Source from the content-addressed store, hash-verified

170 return (status, log_path)
171
172def write_tempfile(content, **kwargs):
173 fd, path = tempfile.mkstemp(**kwargs)
174 f = os.fdopen(fd, 'wt')
175 try:
176 f.write(content)
177 finally:
178 f.close()
179 return path
180
181class SFTPError(Exception):
182 pass

Callers 1

run_sftp_batchFunction · 0.85

Calls 2

writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected