public void backup_Pages(string backupFolder) { var pages_BackupFolder = backupFolder.pathCombine("Pages"); pages_BackupFolder.createDir(); var categories = WikiApi.pages(); savePages(backupFolder, pages_BackupFolder, categories, "pagesMappings.txt"); /*var pages_BackupFolder = backupFolder.pathCombine("Pages"); * pages_BackupFolder.createDir(); * * string pageMappings = ""; * * // backup pages * var pages = WikiApi.pages(); * "there are: {0} pages to backup".info(pages.size()); * foreach(var page in pages) * { * pageMappings += "{0} {1}".format(page, page.base64Encode()).line(); * var saveFileName = "{0}.wikitext.txt".format(Files.getSafeFileNameString(page)); * WikiApi.raw(page).saveAs(pages_BackupFolder.pathCombine(saveFileName)); * } * pageMappings.saveAs(backupFolder.pathCombine("pagesMappings.txt")); */ }