code: def write_manifest(self):
          
          if os.path.exists(self.directory.manifest_path):
              self.main_manifest.write(open(self.directory.manifest_path, "w+"))
docs: Write the manifest to the file