File module watches a folder for new files, reads and parses the file as soon as it's "mature enough" (opening and reading a file that's not fully written on the disk is not wise) and passes the content to the next step. If archive folder is defined it will move the read file to it, if not defined it will delete the file after processing. If there was a processing error while parsing – or later if response channel is defined – and there was an errors folder defined in the configuration the file will be moved to the errors folder.
Example module configuration
Settings
Folder: Location of the input folder, can be templated with environment variables.
Glob: DOS/Unix style glob expression, file pattern including * character. Most common usage is *.xml or stock_*.csv
Archive: Location of the archive folder, same syntax as Folder setting. If declared, files will be moved here after parsing.
Errors: Location of the errors folder, same syntax as Folder setting. If declared, files will be moved here after parsing error or if response (sync) channel name is declared, files will be moved here on non 200 response codes (in line with HTML response code values).
Parser: parser configuration, depending on the chosen format. None parser will read the content of the file as one payload.