# Class HelperFiles OptimaJet.Workflow.Core.Helpers.HelperFiles Namespace: [OptimaJet.Workflow.Core.Helpers](https://api.workflowengine.io/files-plugin/OptimaJet.Workflow.Core.Helpers/) ```csharp public static class HelperFiles ``` ## Methods `public static List GetAllFiles(string directoryPath, bool withSubDirectory = true, string maskSubDirectories = "*", string maskFiles = "*")` ### Parameters | Name | Type | Description | | --- | --- | --- | | `directoryPath` | `String` | | | `withSubDirectory` | `Boolean` | | | `maskSubDirectories` | `String` | | | `maskFiles` | `String` | | ### Returns | Type | Description | | --- | --- | | `List` | | `public static List GetAllDirectories(string directoryPath, bool withSubDirectory = true, string maskSubDirectories = "*")` ### Parameters | Name | Type | Description | | --- | --- | --- | | `directoryPath` | `String` | | | `withSubDirectory` | `Boolean` | | | `maskSubDirectories` | `String` | | ### Returns | Type | Description | | --- | --- | | `List` | | `public static string GetFilePathWithoutExtension(string filePath)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `filePath` | `String` | | ### Returns | Type | Description | | --- | --- | | `String` | | `public static void CopyDirectory(string directoryPath, string directoryCopyPath, bool withSubDirectory = true, string maskSubDirectories = "*", string maskFiles = "*")` ### Parameters | Name | Type | Description | | --- | --- | --- | | `directoryPath` | `String` | | | `directoryCopyPath` | `String` | | | `withSubDirectory` | `Boolean` | | | `maskSubDirectories` | `String` | | | `maskFiles` | `String` | | [Next HelperSharpZIPLib](https://api.workflowengine.io/files-plugin/OptimaJet.Workflow.Core.Helpers/HelperSharpZIPLib/)