Breadcrumbs

List All Files in A Folder

Overview

This template prompts the user for a folder (also known as a "directory") and lists out all files and subfolders within it. If no folder is provided, the current directory is used by default.

Variables

Name

Reference

Type

Required

Default

Options

Description

Workflows Folder Name

FOLDER_NAME

Alphanumeric

Note: the default value is handled on the code end.

None

The folder (also known as a "directory") that will have its contents listed (both files and subfolders).

YAML

YAML
source:
  template: Workflows Helper - List All Files in A Folder
  inputs:
    FOLDER_NAME:
  type: TEMPLATE
guardrails:
  retry_count: 1
  retry_wait: 0h0m0s
  runtime_cutoff: 1h0m0s
  exclude_exit_code_ranges:
    - 104
    - 105
    - 106
    - 199