class_docstr: Helper utils for Workflow Archiver tool.
  This class lists out all the methods such as validations for workflow archiving.
docstr: This method weeds out unwanted hidden directories from the workflow archive .war file
  :param directory:
  :param unwanted_dirs:
  :return:
docstr_tok: ["This","method","weeds","out","unwanted","hidden","directories","from","the","workflow","archive",".war","file",":","param","directory",":",":","param","unwanted_dirs",":",":","return",":"]
code: def directory_filter(directory, unwanted_dirs):
      """
      This method weeds out unwanted hidden directories from the workflow archive .war file
      :param directory:
      :param unwanted_dirs:
      :return:
      """
      if directory in unwanted_dirs:
          return False
      if directory.startswith("."):
          return False
  
      return True
  
imports: import logging
  import os
  import re
  import zipfile
  import shutil
  import tempfile
  from .workflow_archiver_error import WorkflowArchiverError
  from .manifest_components.manifest import Manifest
  from .manifest_components.workflow import Workflow
label_desc: Use image node_id 10 for calling the WorkflowExportUtils obj's underlying member method code with example usage: obj.directory_filter(directory, unwanted_dirs) and returns: True, False, False