def METHOD_NAME(self, files, parentDir="."):
    for filename, contents in self.files:
        filename = os.path.join(parentDir, filename)
        self._createDirectory(filename)
        with open(filename, "w") as fd:
            fd.write(contents)