Question
Accenture
US
Last activity: 16 Jan 2017 7:39 EST
From Pega perform file operation in a FTP folder
Hi Team,
We have a specific requirement to operate on files present in the FTP folder. The requirement is -
1. Once triggered from Pega, system should able to ZIP the files present in a specific folder in FTP server.
2. Once triggered from Pega, system should able to Unzip a ZIP files present in a specific folder in FTP server to another folder in Same FTP server.
We are able to achieve that with custom java code if the source/target folder is Pega server folder. But when trying to perform the same operation for FTP folder, not able to achieve the thing. Even not able to identify if the path is a File or Folder. Do I need to build connection while trying to perform file operation in a FTP folder.
N.B - Requirement is not to upload or browse a file from Pega to FTP or FTP to Pega. Just to do operation in FTP location and that operation will be triggered from Pega only by passing the parameters like Source Folder, Target Folder, File Names etc.
Thanks,
Rajsekhar