Page 1 of 1
Combine Filelist
Posted: Mon Aug 25, 2014 10:55 am
by dchmax
I am calling a FTP get task, 2x+, and downloads the file(s) to the local workspace. I could just run a get filelist on the local workspace to get a complete list of all files. Wondering if I could merge the filelist output from each time the FTP Task is called into 1 list.
David
Re: Combine Filelist
Posted: Mon Aug 25, 2014 5:27 pm
by Support_Rick
At this time, the merging of the FileList isn't available. Your best bet here is to do a CreateFileList across your local WorkSpace once all files have been received to generate a single file list.
The only other option is that if you're retrieving all your files from the same FTP location, those can be added to the same FTP|Get filter.
For example:
Code: Select all <ftp resourceId="DemoFTP" version="1.0">
<get label="Get Files" destinationDir="${system.job.workspace}" whenFileExists="overwrite" destinationFilesVariable="MyLocFileList" numFilesDownloadedVariable="NoFiles" processedSourceFilesVariable="MyRmtFileList">
<fileset dir="\My\First\Directory">
<wildcardFilter>
<include pattern="1st_Dir_Files*" />
</wildcardFilter>
</fileset>
<fileset dir="\My\Second\Directory">
<wildcardFilter>
<include pattern="2nd_Dir_Files*" />
</wildcardFilter>
</fileset>
<fileset dir="\My\Third\Directory">
<wildcardFilter>
<include pattern="3rd_Dir_Files*" />
</wildcardFilter>
</fileset>
</get>
</ftp>
Hope this helps!
Re: Combine Filelist
Posted: Tue Aug 26, 2014 8:14 am
by dchmax
I will go with your 1st suggestion then. Thanks for your response.
David