Determining how many files were copied with the FTP task
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Matthew_Veal
Posted On:   Monday, January 6, 2003 01:27 PM

I am new to both java and ant, so please bear with me ...


I have a number of tasks that I only want to execute if an FTP with a get action actually "gets" any files. However, the FTP task is successful irrespective of how many files it retrieves.


I tried doing a FTP with a list action and out putting the results to a file, and then trying to determine how many, if any files were listed ... but I am having trouble with this approach.


Any suggestions on the best approach?

Re: Determining how many files were copied with the FTP task

Posted By:   Anonymous  
Posted On:   Tuesday, January 14, 2003 04:17 AM

If file.txt is one of the files you try to get :















...


About | Sitemap | Contact