Exemplo n.º 1
0
        private static void UnpackGzip()
        {
            string        directoryName     = Path.GetDirectoryName(AlsFile.FullPath);
            DirectoryInfo directorySelected = new DirectoryInfo(directoryName);

            foreach (FileInfo fileToDecompress in directorySelected.GetFiles("*.gz"))
            {
                Gzip.Decompress(fileToDecompress);
            }
        }
Exemplo n.º 2
0
        public static void RepackAndClean()
        {
            var      fileNameWithoutExtension = Path.GetFileNameWithoutExtension(AlsFile.FullPath);
            string   directoryName            = Path.GetDirectoryName(AlsFile.FullPath);
            FileInfo fileToBeGZipped          = new FileInfo(newPath);

            File.Delete(newPath + " - copy.gz");
            Gzip.Compress(fileToBeGZipped);
            File.Move(newPath + ".gz", directoryName + "\\" + fileNameWithoutExtension + " - converted.als");

            CleanTemporaryFiles();
        }