mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ZipFile, ZipFileEntry, FileTools] Move things around, make program compile again
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user