public void SerializeDirectory(WzDirectory dir, string outPath) { total = dir.CountImages(); curr = 0; if (!Directory.Exists(outPath)) { WzXmlSerializer.createDirSafe(ref outPath); } if (outPath.Substring(outPath.Length - 1, 1) != @"\") { outPath += @"\"; } foreach (WzDirectory subdir in dir.WzDirectories) { SerializeDirectory(subdir, outPath + subdir.Name + @"\"); } foreach (WzImage img in dir.WzImages) { SerializeImage(img, outPath + img.Name); } }
public void SerializeDirectory(WzDirectory dir, string path) { total = dir.CountImages(); curr = 0; exportDirXmlInternal(dir, path); }
public void SerializeDirectory(WzDirectory dir, string outPath) { total = dir.CountImages(); curr = 0; if (!Directory.Exists(outPath)) WzXmlSerializer.createDirSafe(ref outPath); if (outPath.Substring(outPath.Length -1, 1) != @"\") outPath += @"\"; foreach (WzDirectory subdir in dir.WzDirectories) SerializeDirectory(subdir, outPath + subdir.Name + @"\"); foreach (WzImage img in dir.WzImages) SerializeImage(img, outPath + img.Name); }