You are not logged in.
My job use several file types: txt, archive or Excel. It must be able to automatically detect if it's an archive or an Excel file.
Sometimes files have an extension ". Txt" then it's archive ...
Is there a component Talend to detect this?
Otherwise how JAVA can I use?
Link tFileProperties with tFilterRow.
Check "Advanced mode" of tFilterRow.
Set expression of basename.
Get extension at the right of "." .
There isn't a component equivalent to "file -i".
You can only use tFileProperties to get the basename of each file.
And use tFilterRow or tMap to filter the extension.