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

Method write_to

edrav2/eprj/jsoncpp/amalgamate.py:42–48  ·  view source on GitHub ↗
(self, output_path)

Source from the content-addressed store, hash-verified

40 return "".join(self.blocks).replace("\r\n","\n")
41
42 def write_to(self, output_path):
43 output_dir = os.path.dirname(output_path)
44 if output_dir and not os.path.isdir(output_dir):
45 os.makedirs(output_dir)
46 f = open(output_path, "wb")
47 f.write(str.encode(self.get_value(), 'UTF-8'))
48 f.close()
49
50def amalgamate_source(source_top_dir=None,
51 target_source_path=None,

Callers 1

amalgamate_sourceFunction · 0.95

Calls 6

get_valueMethod · 0.95
makedirsMethod · 0.80
openFunction · 0.50
writeMethod · 0.45
encodeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected