[ZipFile, ZipFileEntry, FileTools] Move things around, make program compile again

This commit is contained in:
Matt Nadareski
2016-09-15 16:06:06 -07:00
parent cc1e21964c
commit c4cad201c0
4 changed files with 100 additions and 434 deletions

View File

@@ -195,12 +195,6 @@ namespace SabreTools
return;
}
// TorrentZip a folder
if (tzip)
{
InitTorrentZip(inputs, outdir, tempdir, logger);
}
// If we are converting the folder to TGZ
else if (convert)
{
@@ -234,24 +228,6 @@ namespace SabreTools
return;
}
private static void InitTorrentZip(List<string> inputs, string outdir, string tempdir, Logger logger)
{
foreach (string input in inputs)
{
if (File.Exists(input))
{
FileTools.TorrentZipArchive(input, logger);
}
else if (Directory.Exists(input))
{
foreach (string file in Directory.EnumerateFiles(input, "*", SearchOption.AllDirectories))
{
FileTools.TorrentZipArchive(file, logger);
}
}
}
}
/// <summary>
/// Wrap sorting files using an input DAT
/// </summary>