Was this helpful?
Configuring the Local Folder Listener
The Local Folder Listener monitors file folders for files and will execute a pre-defined Job Configuration (config-id) when triggered.
Notes:
Make sure you have already completed Authorize the File Folder Listener Service.
After making any configuration changes to file-folder-listener-listeners.yml, you must restart the File Folder Listener Service for those changes to take effect.
file-folder-listener-listeners.yml:
Configure these properties in <ProgramDataDirectory>\Actian\FileFolderListener\conf\file-folder-listener-listeners.yml
Property
Default Value
Description
id
A unique identifier for the listener
listener-type
Available listener types: local, aws, gcp, azure
config-id
The Job Configuration ID to run in Integration Manager
active
true
Whether this listener is active
source- directory
The source directory to monitor for new files
include- pattern
Includes files if the file name matches the regular expression pattern you specify. (See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Cheatsheet)
exclude- pattern
Excludes files if the file name matches the regular expression pattern you specify. (See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Cheatsheet)
filename- override
This value will override the filename passed to Integration Manager, regardless of the original source file name. The original source file name will always be used for backup and error files.
auto-create- directories
true
Automatically create missing directories in the source-directory path
recursive
false
Look for files in all the subdirectories of the source-directory as well
flatten- directories
false
Flatten the file name path to strip any leading paths, so it is only the file name. This lets you consume recursively into subdirectories, but track only the file name for backup and error purposes.
Example:
Note:  Indentation is critical for YAML syntax!
listeners:
  - id: local-listener-folder-accounts
    config-id: 90378
    listener-type: local
    active: true
  source-directory: C:\DataSources\accounts
      include-pattern: ^Accounts.txt
    exclude-pattern: ^skipme.txt
  - id: local-listener-folder-contacts
    config-id: 90379
    listener-type: local
    active: true
    source-directory: C:/DataSources/contacts
    include-pattern: ^Contacts.txt
    exclude-pattern: ^skipme.txt
Last modified date: 03/14/2022