I am asking for a Java code.
An ERP generates XML files in a folder, and each one has a different name.
For data extraction, I need to:
If new file is generated:
Copy file from the main folder to a secondary folder
Rename this file under "temp"
Extract data with an ETL (Talend) from "temp"
Delete the file "temp"
My question is: How to capture automaticaly a file with Java in order to copy or rename it each time one is generated?
Thanks