Branch Git Zip

Então, aqui está meu pequeno alias para compartilhar: zip = “!zipArchive() { git archive –format zip –output $1 $2; }; zipArchive” Uso: git zip /path/to/outputflie.zip branchName Ex: git zip version1.zip …

Continuar lendo

Maneira simples de compactar arquivos com C # .NET (Framework 4.5 /4.6)

using System.IO.Compression; public void ZipImages() { string zipCreatePath = System.Web.Hosting.HostingEnvironment.MapPath(“/myZip.zip”); using(ZipArchive archive = ZipFile.Open(zipCreatePath, ZipArchiveMode.Create)) { List<string> files = new List<string>(); files.Add(“wallhaven-103536.jpg”); files.Add(“wallhaven-161383.jpg”); files.Add(“wallhaven-30764.jpg”); foreach(string file in files) { string …

Continuar lendo