Solved

ftp download that checks for new data

  • 25 March 2014
  • 1 reply
  • 9 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.
icon

Best answer by david_r 25 March 2014, 19:51

View original

1 reply

Userlevel 5
Hi,

 

 

if the current solution works, why rewrite it?

 

 

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

 

 

David

Reply