MCPcopy Index your code
hub / github.com/kivy/python-for-android / append_file

Method append_file

pythonforandroid/recipe.py:302–309  ·  view source on GitHub ↗
(self, filename, dest)

Source from the content-addressed store, hash-verified

300 shutil.copy(filename, dest)
301
302 def append_file(self, filename, dest):
303 info("Append {} to {}".format(filename, dest))
304 filename = join(self.get_recipe_dir(), filename)
305 dest = join(self.build_dir, dest)
306 with open(filename, "rb") as fd:
307 data = fd.read()
308 with open(dest, "ab") as fd:
309 fd.write(data)
310
311 @property
312 def name(self):

Callers

nothing calls this directly

Calls 2

get_recipe_dirMethod · 0.95
formatMethod · 0.80

Tested by

no test coverage detected