Skip to content

Combine Filelist

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
  • dchmax Offline
  • Posts: 6
  • Joined: Tue Jun 10, 2014 1:23 pm

Combine Filelist

Post 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
  • Support_Rick Offline
  • Support Specialist
  • Posts: 590
  • Joined: Tue Jul 17, 2012 2:12 pm
  • Location: Phoenix, AZ
  • Contact:

Re: Combine Filelist

Post 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!
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
  • dchmax Offline
  • Posts: 6
  • Joined: Tue Jun 10, 2014 1:23 pm

Re: Combine Filelist

Post by dchmax »

I will go with your 1st suggestion then. Thanks for your response.

David
Post Reply