MCPcopy Create free account
hub / github.com/defold/defold / _push_file

Method _push_file

build_tools/build_android.py:217–229  ·  view source on GitHub ↗
(self, source, device_path)

Source from the content-addressed store, hash-verified

215 raise
216
217 def _push_file(self, source, device_path):
218 device_parent = os.path.dirname(device_path)
219 ret = self._run(['shell', 'mkdir', '-p', device_parent])
220 if ret != 0:
221 self._log('android-test: failed to create device file parent %s' % device_parent)
222 return ret
223
224 ret = self._run(['push', source, device_path])
225 if ret != 0:
226 self._log('android-test: failed to push file %s' % source)
227 return ret
228
229 return 0
230
231 def _push_source_path(self, cwd, source, target):
232 if not os.path.isabs(source):

Callers 1

_push_source_pathMethod · 0.95

Calls 2

_runMethod · 0.95
_logMethod · 0.95

Tested by

no test coverage detected