mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add log statements
This commit is contained in:
@@ -560,6 +560,7 @@ Make a selection:
|
||||
InitGenerate("", "", outdir, norename, old);
|
||||
|
||||
// Zip up all of the files that were generated
|
||||
logger.Log("Creating zip archive");
|
||||
ZipArchive zip = ZipFile.Open(actualdir + "dats-" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".zip", ZipArchiveMode.Create);
|
||||
foreach (String filename in Directory.EnumerateFiles(outdir))
|
||||
{
|
||||
@@ -572,6 +573,7 @@ Make a selection:
|
||||
}
|
||||
}
|
||||
zip.Dispose();
|
||||
logger.Log("Zip archive created!");
|
||||
|
||||
// Remove all of the DATs from the folder
|
||||
Directory.Delete(outdir, true);
|
||||
|
||||
Reference in New Issue
Block a user