Skip to main content
Skip table of contents

Folder Browser

Basic Information

Description

This node is use to list the files in configured folder

Input

Without

Output

A list of file paths that meets configured conditions

Usage Tags

SOURCE ,FILE


Node Settings

  • Root Folder ( string, required) : Path to the folder from which files are listed

  • File Regex filter (string, optional) : All files will be validated against provided regex expressions. Only matching files will be returned.

  • Search subfolders (boolean, required) : If set to True, node will recursively scan all subfolders of root folder.

  • Finish if no files (boolean, required) : If set to True and no files were found the process will stop at this node in success status.

  • Number of files (int, required) : The number of files that is returned. If set to 0 all files that match conditions will be returned.

  • dateFilter (object, optional) : Configures the date file on file info.

    • Field (string, required): File info field that is used to filter files.

    • Operator (string, required): Operator used when comparing files

    • Unit (string, required): Time unit used for filtering.

    • Criteria (int, required): A criteria value used for filtering. In general the node returns files that satisfies file.Field Operator Criteria in Unit

If Date Filter is configured then the Number of files property will be ignored.


Tips and Advanced usage

This node is designed to be used in process that reads data from a folder where new files appear daily.

If using Number of files option, make sure that there is a node at the end of the process that moves the files in a different folder (DONE/ERROR for example). This can be done using Folder Mover .


Examples

Example 1

This examples reads first 10 files that end with txt and are inside C:\InputFiles folder. It does not use date filtering.

JSON
{
  "rootFolder": "C:\\InputFiles",
  "fileFilter": ".*txt",
  "deepFilter": false,
  "finishIfEmpty": true,
  "takeFiles": 10,
  "dateFilter": {
    "Field": null,
    "Operator": null,
    "Unit": null,
    "Criteria": "0"
  }
}

Example 2

This example reads all the files that were modified in the last day inside C:\InputFiles folder.

JSON
{
  "rootFolder": "C:\\InputFiles",
  "fileFilter": ".*txt",
  "deepFilter": false,
  "finishIfEmpty": true,
  "takeFiles": 10,
  "dateFilter": {
    "Field": "LastWriteTime",
    "Operator": "younger",
    "Unit": "TotalDays",
    "Criteria": "1"
  }
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.