This commit is contained in:
2020-04-26 21:22:20 +00:00
parent ad76471fcb
commit 2f32bc9e7e

View File

@@ -612,7 +612,7 @@ namespace AyaNova.Plugin.Dump
WikiPage w= WikiPage.GetItem(tid);
var content= w.GetContentAsString;
AyaFileList fl = AyaFileList.GetList(tid.ID);
AyaFileList fl = AyaFileList.GetList(w.ID);
if (string.IsNullOrWhiteSpace(content) && fl.Count < 1) return;
@@ -638,7 +638,7 @@ namespace AyaNova.Plugin.Dump
//save each file plus file info into their own folder by ayafile id this is because ayafiles can be dupe names and we need the wiki info to fixup the last created date etc
var filePath = wikiOutputPath + Path.DirectorySeparatorChar + i.Id.ToString();
var filePath = wikiOutputPath + Path.DirectorySeparatorChar + i.LT_O_AyaFile.Value.ToString();
makeFolderIfNotExist(filePath);//output/objectype/client.f861ec01-8bde-46e1-9849-fcee9b42f05e/files/d5461ec01-8bde-46e1-9849-fcee9b42f0ff34/
var af = AyaFile.GetItem(i.LT_O_AyaFile.Value);