Skip to main content
Question

FTP CALLER How to use the transformer to list all .zip on sftp and download

  • September 10, 2017
  • 12 replies
  • 738 views
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.

12 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • September 10, 2017

Hi @andrewegriffin,

I created a Workspace using two transformers FTPCaller:

  • First :to get the name all files in ftp.
  • Second: to do download all files with (.zip ).

During the Workspace i worked with the attribute generated by first FTPCaller to split and search using REGEX the words .zip.

Attached the workspace template.

Thanks,

Danilo


arxit
Contributor
Forum|alt.badge.img+5
  • Contributor
  • September 12, 2017

Hi,

I would be interested in the solution, but your sample is not the one in the screenshot above.


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • September 12, 2017

Hi,

I would be interested in the solution, but your sample is not the one in the screenshot above.

Hi @arxit,

 

I'm sorry.

 

Now is the right Workspace.

 

 

Thanks, - workspace-ftp.fmwt

 

Danilo

 


Forum|alt.badge.img

is there a way to add sub-folders to this process?


xiaomengatsafe
Safer
Forum|alt.badge.img+11

is there a way to add sub-folders to this process?

Hi @brianapeters. Thanks for your question. I think it might be a good idea to post your question as a separate new question, as this thread is a bit old. A new question will get better exposure, and more likely to be answered quickly.

Also, in your new question, could you please clarify, by "add sub-folders to this process", do you mean how to handle zip files on sftp that contains subfolders? A bit more detail regarding your specific scenario will be helpful. Cheers,


Forum|alt.badge.img
  • August 16, 2019

Hi @andrewegriffin,

I created a Workspace using two transformers FTPCaller:

  • First :to get the name all files in ftp.
  • Second: to do download all files with (.zip ).

During the Workspace i worked with the attribute generated by first FTPCaller to split and search using REGEX the words .zip.

Attached the workspace template.

Thanks,

Danilo

Thanks for sharing @danilo_fme


  • November 4, 2020

The .fmw project no longer seems to be attached. You wouldn't happen to have this would you?


LizAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • November 5, 2020

The .fmw project no longer seems to be attached. You wouldn't happen to have this would you?

Hi @sxwebster​,

 

Thank you for reporting the missing attachment. I've fixed the original link as well as attached the workspace to this comment.


boneill81
Forum|alt.badge.img
  • February 26, 2022

@danilo_fme​  Thanks a million, this was very helpful for me. One note though for anyone who is having issues with the downloads not happening in the second FTP Caller. The @Value(files_zip) must also be appended to the FTP Callers URL parameter or else the downloaded file will simply be a directory listing from the ftp server. The  URL in this example would be:

ftp://ftp.safe.com/outgoing/@Value(files_zip)

 


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • March 1, 2022

@danilo_fme​  Thanks a million, this was very helpful for me. One note though for anyone who is having issues with the downloads not happening in the second FTP Caller. The @Value(files_zip) must also be appended to the FTP Callers URL parameter or else the downloaded file will simply be a directory listing from the ftp server. The  URL in this example would be:

ftp://ftp.safe.com/outgoing/@Value(files_zip)

 

Thanks @boneill81​ for your feedback.


anthrax_79
Contributor
Forum|alt.badge.img+4
  • Contributor
  • May 22, 2022

Thanks for providing a workspace, I was able to download the compressed file however there seems to be a problem with the file itself after it was downloaded using FME. No issues downloading the same file manually using FileZilla.

 

This is from an SFTP site and the only thing I've changed on the FTP Caller was the Authentication Parameters.

 

Not sure if it's relevant, but the ZIP has 5 folders and each folder has a subfolder to each shapefiles.image


fmejamesl
Contributor
Forum|alt.badge.img+5
  • Contributor
  • March 3, 2023

@danilo_fme​  Thanks a million, this was very helpful for me. One note though for anyone who is having issues with the downloads not happening in the second FTP Caller. The @Value(files_zip) must also be appended to the FTP Callers URL parameter or else the downloaded file will simply be a directory listing from the ftp server. The  URL in this example would be:

ftp://ftp.safe.com/outgoing/@Value(files_zip)

 

I was banging my head on the desk. This would be great documentation addition. 😕