cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPI

Karthikeshwaran
Explorer
0 Kudos
130

Hi Experts,
In a FTP-FTP scenario i want to get the source and target directory path in a content modifier,is there any ways to get it or any camel expression to get the same?
Thank you.

View Entire Topic
Ryan-Crosby
Active Contributor

The header that includes the directory for the source file would be "CamelFileName" but it also includes the value of the file itself which can be accessed via header "CamelFileNameOnly".  That information would only be relevant for the source because no value would be present for the target since it would reference the same headers or any specific configuration that you provide.

 

Regards,

Ryan Crosby

Karthikeshwaran
Explorer
0 Kudos

Thanks,
But there are no ways to get the FTP target configuration directory path, am i correct?

 

Ryan-Crosby
Active Contributor
@Karthikeshwaran you could check for APIs, but no options that I'm aware of