original_docstring: Build lambda layer from directory name
docstring: Build lambda layer from directory name
docstring_tokens: Build lambda layer from directory name
code: def create_lambda_layer_from_dir(
      output_dir: str, tag: str, layer_dir: str, prefix: str = ""
  ):
      """Build lambda layer from directory name"""
      layer_zip = f"{output_dir}/{tag}.zip"
      with ZipFile(layer_zip, "w") as zfile:
          paths = lambda_filtered_paths(layer_dir)
          for path in paths:
              # This checks got flycheck temporary files
              if path.exists():
                  zfile.write(path, path if prefix == "" else prefix + "/" + str(path))
code_tokens: def create_lambda_layer_from_dir ( output_dir : str , tag : str , layer_dir : str , prefix : str = "" ) : layer_zip = f"{output_dir}/{tag}.zip" with ZipFile ( layer_zip , "w" ) as zfile : paths = lambda_filtered_paths ( layer_dir ) for path in paths : if path . exists ( ) : zfile . write ( path , path if prefix == "" else prefix + "/" + str ( path ) )
short_docstring: Build lambda layer from directory name
short_docstring_tokens: Build lambda layer from directory name
comment: """Build lambda layer from directory name"""$SEP$# This checks got flycheck temporary files