ZipFile.CreateFromDirectory Method
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Creates a zip archive that contains the files and directories from the specified directory.
Assembly: System.IO.Compression.FileSystem (in System.IO.Compression.FileSystem.dll)
Name | Description | |
---|---|---|
![]() ![]() | CreateFromDirectory(String, String) | Creates a zip archive that contains the files and directories from the specified directory. |
![]() ![]() | CreateFromDirectory(String, String, CompressionLevel, Boolean) | Creates a zip archive that contains the files and directories from the specified directory, uses the specified compression level, and optionally includes the base directory. |
![]() ![]() | CreateFromDirectory(String, String, CompressionLevel, Boolean, Encoding) | Creates a zip archive that contains the files and directories from the specified directory, uses the specified compression level and character encoding for entry names, and optionally includes the base directory. |
Show: