Skip to main content
Solved

ftp download that checks for new data

  • March 25, 2014
  • 1 reply
  • 29 views

I have a batch written in python that logs into a ftp site, checks a directory for a file, validates whether the date is newer than the last newest file (for which it downloaded the zipped shapefiles) and then downloads the zip if it is new, otherwise it sends a logfile, exits and waits for another day.   I'd like to redo the python batch into FME.  

 

 

I know I can add my ftp paramaters in the Add Source Data in FME, but is there a way to check whether the data is new (has not been added before) and if so download it, unzip it, read the files and update the geodatabase, otherwise exit and send a log file.   The ftp features are "undocumented according to the documentation" (ironic) in transformers like HTTP Fetcher, so not sure if that is the approach or just a simple workbench with the ftp coordinates in the add data parameters with some attached voodo.

 

 

I'm sure someone out there does the same thing and has some code to share... pretty please.  thx G.

Best answer by david_r

Hi,

 

 

if the current solution works, why rewrite it?

 

 

Personally, I think Python is the perfect tool for this.

 

 

David
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

david_r
Celebrity
  • Best Answer
  • March 25, 2014
Hi,

 

 

if the current solution works, why rewrite it?

 

 

Personally, I think Python is the perfect tool for this.

 

 

David