Download a specific file from FTP

Post Reply
LasseThid
Advanced member
Posts: 365
Joined: Tue Mar 03, 2015 2:30 pm
Location: Molndal, Sweden

Download a specific file from FTP

Post by LasseThid »

Is it possible to have Switch download a specific file from a specific folder on an FTP-server?
I.e. an xml-file is sent to the flow by e-mail. The xml-file contains the filename of the pdf-file I need to use for that job.
Or would it be better to download everything from the ftp-server and then use the XML-pickup with Metadata alongside asset Pickup mode?
Enfocus Switch, Enfocus PitStop Server, Enfocus PDF Review, HP SmartStream& Kodak Prinergy with RBA
Offset 72x102, Offset Large Format, Digital Large Format and Digital print.
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Download a specific file from FTP

Post by gabrielp »

I haven't used all of the options of the FTP receive configurator, but I don't think you can specify specific files (although you can select subfolders).

I would download everything, if you can, then do an XML-pickup if that is an option. Another thing to look at would be injecting, since you can specify specific files with an inject. You cannot do so over FTP, so you'd have to mount the destination as a regular volume or download the FTP contents to a non-automanaged folder to perform the inject.
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
3f8h.net
Member
Posts: 26
Joined: Tue Mar 13, 2012 4:14 pm

Re: Download a specific file from FTP

Post by 3f8h.net »

I´d use ncftp client command line (and have done this before with success).
--
Sebastian Nafroth
3f8h.net / electronic publishing
Orchestrating publishing workflows since 1999

Oswald-Haug-Weg 3 / D-79312 Emmendingen
Tel +49 7641 967 36 9-0 / Fax +49 7641 967 36 9-9
sna@3f8h.net / https://3f8h.net
LasseThid
Advanced member
Posts: 365
Joined: Tue Mar 03, 2015 2:30 pm
Location: Molndal, Sweden

Re: Download a specific file from FTP

Post by LasseThid »

I have two other workflows that use the Metadata alongside asset pickup mode, so that is definately an option, and probably the most efficient one as well as we have a customer that will upload up to 100 files at the same time.
Enfocus Switch, Enfocus PitStop Server, Enfocus PDF Review, HP SmartStream& Kodak Prinergy with RBA
Offset 72x102, Offset Large Format, Digital Large Format and Digital print.
Post Reply