Retrieve only most recent file

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

kgutierrez

Posts: 6
Joined: Fri Aug 28, 2015 11:42 am

Post by kgutierrez » Fri Aug 28, 2015 12:10 pm
I am working on a project (my first!) where I will be connecting and looking for a file with a specific prefix. The partner puts a file out there every day but I only need the most recent file. Most days there will be just one but in the case that there is more than one, I only want the most recent one. I have no way to control the file name so it will be different every day since it will include a date and time stamp.

How do I do this with GoAnywhere Director? I thought about using a filter that only downloads a file with today’s date but in the off chance there were two files on one day, I still just want the most recent file. Any help is greatly appreciated!

At this time, I'm trying to only download the files from today and then do a loop to only grab the last one but would love to find a simpler way!

TIA, Kathleen

Support_Rick

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

Post by Support_Rick » Thu Sep 03, 2015 11:13 am
Kathleen,

Did the code and discussion we had help with this solution?
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts Page 1 of 1