Combine Filelist

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
3 posts Page 1 of 1

dchmax

Posts: 6
Joined: Tue Jun 10, 2014 1:23 pm

Post by dchmax » Mon Aug 25, 2014 10:55 am
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

Support_Rick

Support Specialist
Posts: 590
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Mon Aug 25, 2014 5:27 pm
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!
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696

dchmax

Posts: 6
Joined: Tue Jun 10, 2014 1:23 pm

Post by dchmax » Tue Aug 26, 2014 8:14 am
I will go with your 1st suggestion then. Thanks for your response.

David
3 posts Page 1 of 1