'Write a file to the control dir with the given name and contents.
:param path: The path to the file, relative to the control dir.
:param contents: A string to write to the file.'

def _put_named_file(self, path, contents):

    self._named_files[path] = contents
