static void collectBranch(CollectOptions options) { Console.WriteLine("[collect]"); FileInfo fi = new FileInfo(options.targetDirectory); if (Directory.Exists(options.targetDirectory)) { doForEachFile(options.targetDirectory, collectHandler); tCollection.exportCSV(options.configLoc); } else if (new FileInfo(options.targetDirectory).Extension == ".rar" || new FileInfo(options.targetDirectory).Extension == ".zip") { Console.WriteLine("ddddd"); unzip(options.targetDirectory, unZipLoc); doForEachFile(unZipLoc, collectHandler); tCollection.exportCSV(options.configLoc); } wipe(); }