def nodefilecopy(self, filename, srcfilename, mode = None):
        hostfilename = self.hostfilename(filename)
        shutil.copy2(srcfilename, hostfilename)
        if mode is not None:
            os.chmod(hostfilename, mode)
        self.info("copied nodefile: '%s'; mode: %s" % (hostfilename, mode))
Copy a file to a node, following symlinks and preserving metadata.
dataset/ETHPy150Open coreemu/core/daemon/core/netns/vnode.py/LxcNode.nodefilecopy