FTP site file names with dates and times

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
bbrink
Pro Scripter
Posts: 70
Joined: Thu Dec 31, 2009 2:36 am
Location: Minnesota
Contact:

FTP site file names with dates and times

Post by bbrink » Sat Jun 03, 2017 10:24 pm

Hi,

Anyone have a script to share that grabs file list with dates and times from FTP?

For example, every hour I need to make sure new copy of file XYZ has been uploaded. the file name does not change, but the date and time will.

Thanks,

Bob

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: FTP site file names with dates and times

Post by Marcus Tettmar » Wed Jun 07, 2017 9:52 am

The FTPGetDirList function will get that for you.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

bbrink
Pro Scripter
Posts: 70
Joined: Thu Dec 31, 2009 2:36 am
Location: Minnesota
Contact:

Re: FTP site file names with dates and times

Post by bbrink » Wed Jun 07, 2017 11:59 am

I had seen that command and tested with type = "L". -I did not test with the necessary type of "D" because the help file states:

"Type can be either D or L, where D obtains a full directory listing, including directories, subdirectories and their contents. L creates a simple file list, containing just filenames matching the file spec."

I thought that meant the D list would go "D" deeper, I did not think it meant the list would include "D" Details like file dates and times. ;>)

Thanks for the clarification,

Bob

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts