Skip to main content
This gem runs in .

Overview

List files and folders of a specified directory from a data ingress/egress connection.

Prerequisites

  • Run Prophecy version 4.1.3 or higher.

Input and Output

The Directory gem does not accept any inputs. The Directory gem produces one output. The output schema includes the following columns:
  • name: The name of the file.
  • path: The full path to the file.
  • size_in_bytes: The size of the file. Folders will be listed as 0 bytes.
  • creation_time: The time that the file was created.
  • modification_time: The time that the file was last modified.
  • parent_directory: The parent directory of the file or folder.
  • file_type: Whether the record listed is a file or a folder.
  • sheet_name: The name of the excel sheet in an XLSX file. This column appears when the Include sheet name as column in output for xlsx files parameter is enabled.
If a certain connection does not provide a certain field (for example, Databricks does not provide creation time), then the columns will be populated with zeroes or null values.

Parameters

Configure the Directory gem using the following parameters.

Supported connection types

You can use the Directory gem to list files and folders from the following connection types: