Genpact Cora Knowledge Center

Support

File Command (List Files) Activity Overview

Starting with V11.1, Cora Orchestration has been renamed to Orchestration AI.
Starting with V10.0, Cora SeQuence has been renamed to Cora Orchestration.

V11.5

Starting from this version the List Files activity has been renamed to File Command activity. The activity extracts the list of files and file details from a storage, copies and moves files from one location to another, and delete files.

Following is the file information extracted by the activity: 

  • File name
  • File size (bytes)
  • Full path
  • Exists
  • Date created
  • Date last modified

Following are the supported storage systems from which you can extract the file information and copy and move files:

  • Amazon Simple Storage Service (AWS S3)
  • Azure Blob Storage
  • Azure File Storage
  • FTP
  • SFTP
  • Network Drive

To extract file information or copy and move files from an external storage or delete files, you need to connect to the external storage.
For details on adding a new connection to an external storage system, see this article.

List Files activity parameters

ParameterDescriptionInterface
Connection to File StorageConnection you defined to the external storage system.Click image to enlarge it.
CommandThe action to be performed by the activity.
  • List files
  • Copy files
  • Move files
  • Delete files
Source PathPath to the folder where the file is. It is appended to the connection you defined to the external storage system. You must use backward slashes (\) when you define the file name.
Example: Host\BasePath\SourcePath\FileName
File PatternThe file search pattern. Leave empty to extract list of all the files in storage.
If the Source Path does not existIf the file does not exist, select how the activity proceeds.
  • Fail activity execution: the activity fails.
  • Continue activity execution: the activity continues, without importing a file.
Search List Max Size (Pre-Filtered)Maximum number of records to be searched.
Filtered List Order ByThe parameter based on which the list is sorted.
  • Date created
  • Date modified
  • File Name
  • File Size
Select the order as Ascending or Descending.
Filtered List Max SizeMaximum number of records to be listed/displayed.
Target path
(for Copy file and Move file)
Path to the folder where the file is to be moved or copied in case of Copy file or Move file.
If File Exists in Target Path
(for Copy files and Move files)
To confirm action if a file is already in the target folder. 
  • Overwrite 
  • Skip

Risk Acknowledgment
(for Delete files)
To confirm deleting files.


V11.3

Overview

The List Files activity extracts the list of files and file details from a storage, and copies and moves files from one location to another.

Following is the file information extracted by the activity: 

  • File name
  • File size (bytes)
  • Full path
  • Exists
  • Date created
  • Date last modified

Following are the supported storage systems from which you can extract the file information and copy and move files:

  • Amazon Simple Storage Service (AWS S3)
  • Azure Blob Storage
  • Azure File Storage
  • FTP
  • SFTP
  • Network Drive

To extract file information or copy and move files from an external storage, you need to connect to the external storage.
For details on adding a new connection to an external storage system, see this article.

List Files activity parameters

Parameter Description Interface
Connection to File Storage Connection you defined to the external storage system. Click image to enlarge it.
Command The action to be performed by the activity.
  • List files
  • Copy files
  • Move files
Source Path Path to the folder where the file is. It is appended to the connection you defined to the external storage system. You must use backward slashes (\) when you define the file name.
Example: Host\BasePath\SourcePath\FileName
File Pattern The file search pattern. Leave empty to extract list of all the files in storage.
If the file does not exist If the file does not exist, select how the activity proceeds.
  • Fail activity execution: the activity fails.
  • Continue activity execution: the activity continues, without importing a file.
File List Maximum Size Maximum number of records to be displayed.
Order Files By The parameter based on which the list is sorted.
Select the order as Ascending or Descending.


V10.8

Overview

The List File activity extracts the list and details of all files from a storage.
Following is the extracted information: 

  • File name
  • File size (bytes)
  • Full path
  • Exists
  • Date created
  • Date last modified

Following are the supported storage systems from which you can extract the file information:

  • Amazon Simple Storage Service (AWS S3)
  • Azure Blob Storage
  • Azure File Storage
  • FTP
  • SFTP
  • Network Drive

To extract file information from an external storage, you need to connect to the external storage.
For details on adding a new connection to an external storage system, see this article.

List File activity parameters

Parameter Description Interface
Connection to File Storage Connection you defined to the external storage system. Click image to enlarge it.
Source Path Path to the folder where the file is. It is appended to the connection you defined to the external storage system. You must use backward slashes (\) when you define the file name.
Example: Host\BasePath\SourcePath\FileName
File Pattern The file search pattern. Leave empty to extract list of all the files in storage.
If the file does not exist If the file does not exist, select how the activity proceeds.
  • Fail activity execution: the activity fails.
  • Continue activity execution: the activity continues, without importing a file.
File List Maximum Size Maximum number of records to be displayed.
Order Files By The parameter based on which the list is sorted.
Select the order as Ascending or Descending.