The File Component interacts with the file system both as a consumer and producer.
The File component lets users read from and write to files. It can be configured as follows:
|path to the target directory|
|specifies the encoding of the file|
|automatically create missing directories in the file path|
|what to do if a file already exists with the same name|
|if a directory, will look for files in all the sub-directories as well|
|used to include files, if filename matches the regex pattern|
|used to exclude files, if filename matches the regex pattern|
|if true, the file will be deleted after it is processed|
|milliseconds before polling the file/directory starts|
|milliseconds before the next poll of the file/directory|
If the DeleteFile property is not set to true, processed files will be moved to a .camel directory.
Base Camel component
- Path: Pay some attention when you specify the path, when you include a
/at the end of the path, the ftp component will try to copy the whole file path and not the file name by itself!