Files being deleted before they finish downloading to ftpsite

Post Reply
darleneroy
Newbie
Posts: 14
Joined: Wed Sep 03, 2014 2:57 pm

Files being deleted before they finish downloading to ftpsite

Post by darleneroy »

Hi, currently we have files uploading to our ftp-site we have the flow selected to not have the files delete from the ftp-site once it has entered the flow.



We use to have the files delete once it has entered the flow but found that it was deleting these files before they even finished uploading.





Is there a way to have switch wait until a file has been fully downloaded before it removes it from the site. Let alone grabs it for the flow?


freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

Files being deleted before they finish downloading to ftpsite

Post by freddyp »

I cannot vouch for all possible FTP servers of course, but the three that I checked had some setting that determines whether FTP clients (Switch in this case) have access to files that are being uploaded. If that capability is enabled, then of course Switch sees the file before it is finished uploading and starts downloading it, with the result that you describe.



Please check the settings on your FTP server.



Freddy
darleneroy
Newbie
Posts: 14
Joined: Wed Sep 03, 2014 2:57 pm

Files being deleted before they finish downloading to ftpsite

Post by darleneroy »

Thanks Freddy, I will look into our ftp server and see if that option is there and if its enabled.



So by disabling that option then switch will not pick up the file until it has been fully downloaded to the particular server correct?



Dar
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

Files being deleted before they finish downloading to ftpsite

Post by freddyp »

Correct, but to paraphrase a well-known saying, the proof of the FTP is in the up and downloading. Good luck and let us know how it went.



Freddy
darleneroy
Newbie
Posts: 14
Joined: Wed Sep 03, 2014 2:57 pm

Files being deleted before they finish downloading to ftpsite

Post by darleneroy »

Will do. Thanks again freddy
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Files being deleted before they finish downloading to ftpsite

Post by dkelly »

I wrote a script to delete files off FTP server after they passed Pitstop preflight to solve a similar problem for one of my customers.






_olq
Member
Posts: 36
Joined: Fri Aug 23, 2013 10:21 am
Location: Poland

Files being deleted before they finish downloading to ftpsite

Post by _olq »

dkelly wrote: I wrote a script to delete files off FTP server after they passed Pitstop preflight to solve a similar problem for one of my customers.




So, I hope you will share script :)



Thank you in advance,

Aleksander
Aleksander
darleneroy
Newbie
Posts: 14
Joined: Wed Sep 03, 2014 2:57 pm

Files being deleted before they finish downloading to ftpsite

Post by darleneroy »

Thanks for the reply I will try that script forsure.

dar
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Files being deleted before they finish downloading to ftpsite

Post by dkelly »

Here's the FTPdelete script. You will need the Switch Scripting module and Perl installed.



https://www.dropbox.com/s/jsxo37b2jvfz51t/FTPDelete.zip



Dwight Kelly dkelly@apago.com>

Apago, Inc.
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Files being deleted before they finish downloading to ftpsite

Post by gabrielp »

dkelly wrote: Here's the FTPdelete script. You will need the Switch Scripting module and Perl installed.



https://www.dropbox.com/s/jsxo37b2jvfz51t/FTPDelete.zip



Dwight Kelly dkelly@apago.com>

Apago, Inc.


Very cool. Neat to see Perl still being used as well :D
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Post Reply