File component
The File Component interacts with the file system both as a consumer and producer.
Configuration
The File component lets users read from and write to files. It can be configured as follows:
Property | Description |
---|---|
Path | path to the target directory |
Charset | specifies the encoding of the file |
AutoCreate | automatically create missing directories in the file path |
FileExist | what to do if a file already exists with the same name |
Recursive | if a directory, will look for files in all the sub-directories as well |
Include | used to include files, if filename matches the regex pattern |
Exclude | used to exclude files, if filename matches the regex pattern |
DeleteFile | if true, the file will be deleted after it is processed |
InitialDelay | milliseconds before polling the file/directory starts |
Delay | 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
Remarks
- 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!