MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / install_file

Method install_file

tools/ports/__init__.py:205–209  ·  view source on GitHub ↗
(filename, target)

Source from the content-addressed store, hash-verified

203
204 @staticmethod
205 def install_file(filename, target):
206 sysroot = cache.get_sysroot_dir()
207 target_dir = os.path.join(sysroot, os.path.dirname(target))
208 os.makedirs(target_dir, exist_ok=True)
209 maybe_copy(filename, os.path.join(sysroot, target))
210
211 @staticmethod
212 def install_headers(src_dir, pattern='*.h', target=None):

Callers 2

createFunction · 0.80
createFunction · 0.80

Calls 2

maybe_copyFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected