class_docstr: Build the deployment package for StreamAlert Lambdas
class_docstr_tok: ["Build","the","deployment","package","for","StreamAlert","Lambdas"]
docstr: Copy all files and folders into temporary package path
  
  Args:
      path (str): Path of directory to be copied into the Lambda package
      ignores (set=None): File globs to be ignored during the copying of the directory
docstr_tok: ["Copy","all","files","and","folders","into","temporary","package","path","Args",":","path","(","str",")",":","Path","of","directory","to","be","copied","into","the","Lambda","package","ignores","(","set=None",")",":","File","globs","to","be","ignored","during","the","copying","of","the","directory"]
code: def _copy_directory(self, path, ignores=None, destination=None):
      """Copy all files and folders into temporary package path
  
      Args:
          path (str): Path of directory to be copied into the Lambda package
          ignores (set=None): File globs to be ignored during the copying of the directory
      """
      # Copy the directory, skipping any files explicitly ignored
      kwargs = (
          {"ignore": shutil.ignore_patterns(*ignores)}
          if ignores
          else dict()
      )
      destination = destination or path
      destination = os.path.join(self.temp_package_path, destination)
      shutil.copytree(path, destination, **kwargs)
  
file_path: streamalert/streamalert_cli/manage_lambda/package.py
imports: import os
  import shutil
  import tempfile
  from streamalert.shared.logger import get_logger
  from streamalert_cli.helpers import run_command
label_desc: Use image node_id 4 for calling the LambdaPackage obj's underlying member method code with example usage: obj._copy_directory(path, ignores, destination) without return types