Discussion:
File management connector
(too old to reply)
rpuggal
2018-02-21 19:29:40 UTC
Permalink
We are using the FAM connector to process input files And move them to another directory once processed. One of the things we have noticed is that the move fails if the file already exists in the target folder. Is there any way to force the file to be overwritten ? We are using the connector in update mode btw.
Eddie Hartman
2018-02-23 09:15:29 UTC
Permalink
Post by rpuggal
We are using the FAM connector to process input files And move them to another directory once processed. One of the things we have noticed is that the move fails if the file already exists in the target folder. Is there any way to force the file to be overwritten ? We are using the connector in update mode btw.
You will need to delete the existing file yourself, for example by using the system.deleteFile() function (or java.io.File classes and methods directly).

-Eddie
rpuggal
2018-02-26 18:18:12 UTC
Permalink
Thanks Eddie as always your insight is priceless! Indeed up doing what you suggested and seems to be working now !
Loading...