Find Filename in file list

If you have a new question you’d like our support staff to post a response to, please visit our customer community, GoAnywhere Insiders, to pose the question in our Discussion Boards. We have a thread “Ask Our Tech Experts” that our support team monitors on a regular basis, or you can start a new discussion where other GoAnywhere users and support staff can weigh in. Log in or create your new account at https://insiders.goanywhere.com.

If you need an immediate response, please create a support ticket or contact our support team by email at [email protected].
5 posts Page 1 of 1

Grodaes

Posts: 10
Joined: Mon Dec 05, 2016 12:12 pm

Post by Grodaes » Mon Dec 05, 2016 12:22 pm
Hello,

I am new to GAMFT however I am trying to have a monitor capture a file list at a specific time and send an email to tell me if certain files are missing from that list. I get a group of files around the same time and only need to know what files are missing. Is there any way to create a "Ideal" vs "real" file list comparison?

EG:
File1 File1
File2
File 3 File3

Email return:
File 2 is missing.

Support_Rick

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

Post by Support_Rick » Mon Dec 05, 2016 12:25 pm
The only way to accomplish this would be to have your "ideal" file list in a Spreadsheet, CSV or Database table somewhere that you can compare against. Then, loop through the file list, see if it exists in your "real" vs. "ideal" comparison and then you can identify what is missing.

You could do a file number comparison to begin with and if all the files exists in one and the other, the count should be the same.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696

Grodaes

Posts: 10
Joined: Mon Dec 05, 2016 12:12 pm

Post by Grodaes » Mon Dec 05, 2016 12:28 pm
Thanks Rick,

So typically these files have a datestamp so I suppose i could put some prefaces into a csv and then loop adding the time stamp.

Is there seriously no way to look into a fileset and see what it contains?

Support_Rick

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

Post by Support_Rick » Mon Dec 05, 2016 12:30 pm
Yes, a ForEach loop across the filelist variable allows you to view each file and each file's attributes.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696

Grodaes

Posts: 10
Joined: Mon Dec 05, 2016 12:12 pm

Post by Grodaes » Mon Dec 05, 2016 12:40 pm
Perfect! Thanks a bunch!
5 posts Page 1 of 1