Page 1 of 1

Files being deleted before they finish downloading to ftpsite

Posted: Wed Oct 01, 2014 3:01 pm
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?



Files being deleted before they finish downloading to ftpsite

Posted: Thu Oct 02, 2014 12:18 pm
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

Files being deleted before they finish downloading to ftpsite

Posted: Thu Oct 02, 2014 1:31 pm
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

Files being deleted before they finish downloading to ftpsite

Posted: Thu Oct 02, 2014 4:12 pm
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

Files being deleted before they finish downloading to ftpsite

Posted: Thu Oct 02, 2014 4:20 pm
by darleneroy
Will do. Thanks again freddy

Files being deleted before they finish downloading to ftpsite

Posted: Fri Oct 03, 2014 6:17 pm
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.







Files being deleted before they finish downloading to ftpsite

Posted: Mon Oct 06, 2014 1:01 pm
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

Files being deleted before they finish downloading to ftpsite

Posted: Mon Oct 06, 2014 1:14 pm
by darleneroy
Thanks for the reply I will try that script forsure.

dar

Files being deleted before they finish downloading to ftpsite

Posted: Mon Oct 06, 2014 5:06 pm
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.

Files being deleted before they finish downloading to ftpsite

Posted: Mon Oct 06, 2014 7:44 pm
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