public static string[] GetDirectoryPaths(string directoryPath, string searchPattern) { DirectoryUtils.CreateDirectoryIfNotExists(directoryPath); return(Directory.GetDirectories(directoryPath, searchPattern)); }