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