# Class HelperSharpZIPLib OptimaJet.Workflow.Core.Helpers.HelperSharpZIPLib Namespace: [OptimaJet.Workflow.Core.Helpers](https://api.workflowengine.io/files-plugin/OptimaJet.Workflow.Core.Helpers/) ```csharp public static class HelperSharpZIPLib ``` ## Methods `public static void CompressDirectoryToZIP(string zipPath, string directoryPath, bool subDirectory = true, string maskSubDirectories = "*", string maskFiles = "*")` ### Parameters | Name | Type | Description | | --- | --- | --- | | `zipPath` | `String` | | | `directoryPath` | `String` | | | `subDirectory` | `Boolean` | | | `maskSubDirectories` | `String` | | | `maskFiles` | `String` | | `public static void CompressDirectoryToTGZ(string tgzPath, string directoryPath, bool subDirectory = true, string maskSubDirectories = "*", string maskFiles = "*")` ### Parameters | Name | Type | Description | | --- | --- | --- | | `tgzPath` | `String` | | | `directoryPath` | `String` | | | `subDirectory` | `Boolean` | | | `maskSubDirectories` | `String` | | | `maskFiles` | `String` | | `public static void CompressFilesToZIP(string zipPath, List filesPaths, string maskFiles = "*")` ### Parameters | Name | Type | Description | | --- | --- | --- | | `zipPath` | `String` | | | `filesPaths` | `List` | | | `maskFiles` | `String` | | `public static void CompressFilesToTGZ(string tgzPath, List filesPaths, string maskFiles = "*")` ### Parameters | Name | Type | Description | | --- | --- | --- | | `tgzPath` | `String` | | | `filesPaths` | `List` | | | `maskFiles` | `String` | | `public static void UnCompressZIP(string zipPath, string directoryPath)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `zipPath` | `String` | | | `directoryPath` | `String` | | `public static void UnCompressTGZ(string tgzPath, string directoryPath)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `tgzPath` | `String` | | | `directoryPath` | `String` | | ## Fields `public static Dictionary FilesExtensions` ## Nested Types `public enum HelperSharpZIPLib.ArchiveType` [View HelperSharpZIPLib.ArchiveType](https://api.workflowengine.io/files-plugin/OptimaJet.Workflow.Core.Helpers/HelperSharpZIPLib.ArchiveType/) [Previous HelperFiles](https://api.workflowengine.io/files-plugin/OptimaJet.Workflow.Core.Helpers/HelperFiles/) [Next HelperSharpZIPLib.ArchiveType](https://api.workflowengine.io/files-plugin/OptimaJet.Workflow.Core.Helpers/HelperSharpZIPLib.ArchiveType/)