Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem with FTP and Zipfiles

Former Member
0 Likes
473

Hi,

we have the requirement to upload a file on a daily basis from a ftp server. There are always the last 3 files in the directory. My first problem is to find out which file is the latest. The names are like PRICE_01FEB2010.ZIP and PRICE_02FEB2010.ZIP so it's difficult to check it automatically by name. I know for example function ADS2KIPUPL_GET_FILE_ATTRIBUTES to get Application Server File Attributes. So is there similar to this function a FTP command existing which will find out the latest Price file?

My second problem is how to unzip the file (it's a zipped csv-file).

Every little hint is welcome

Best Regards

Lucy

Hi,

we have the requirement to upload a file on a daily basis from a ftp server. There are always the last 3 files in the directory. My first problem is to find out which file is the latest. The names are like PRICE_01FEB2010.ZIP and PRICE_02FEB2010.ZIP so it's difficult to check it automatically by name. I know for example function ADS2KIPUPL_GET_FILE_ATTRIBUTES to get Application Server File Attributes. So is there similar to this function a FTP command existing which will find out the latest Price file?

My second problem is how to unzip the file (it's a zipped csv-file).

Every little hint is welcome

Best Regards

Lucy

1 REPLY 1
Read only

Former Member
0 Likes
429

I've found a solution ....