Skip to content

Commit a239354

Browse files
committed
reinstate 1 snippet file
1 parent 08cc288 commit a239354

File tree

1 file changed

+19
-0
lines changed
  • snippets/csharp/System.IO.Compression/ZipFile/CreateFromDirectory

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// <snippet3>
2+
using System;
3+
using System.IO;
4+
using System.IO.Compression;
5+
6+
namespace ConsoleApplication
7+
{
8+
class Program
9+
{
10+
static void Main(string[] args)
11+
{
12+
string startPath = @"c:\example\start";
13+
string zipPath = @"c:\example\result.zip";
14+
15+
ZipFile.CreateFromDirectory(startPath, zipPath, CompressionLevel.Fastest, true);
16+
}
17+
}
18+
}
19+
// </snippet3>

0 commit comments

Comments
 (0)