File List - Capture only the file name

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

kprice

Posts: 2
Joined: Fri Aug 08, 2014 3:34 pm

Post by kprice » Fri Jul 10, 2015 12:48 pm
I've been unable to find anything in the documentation for this currently - I'm looking for a way to do the following:

1. List all files in folder A

2. Compare the list of files in folder A to the files in folder B

I've tried using a file list, but it captures the full file path and not just the file name. This might be a stupid question - is there a way to solely retrieve the file names and save them into variables to call again later?

Support_Rick

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

Post by Support_Rick » Mon Jul 13, 2015 12:00 pm
KPrice ...

The FileList variable captures more than just the file path. Attributes are available to the FileList variable that give you access to FileSize, FilePath, FileName, NameWithoutExtension, LastModifiedDate, etc...

So, you can utilize the FileList variable to do numerous things.

Looping through the FileList variable gives you access to these attributes.

Further Details can be found on our Forum under the Knowledge Center|Example Projects

FileSize Attributes is one example

Print FileList Attributes is another

Let us know if you have any other questions.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts Page 1 of 1