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
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
Please check the settings on your FTP server.
Freddy
-
darleneroy
- Newbie
- Posts: 14
- Joined: Wed Sep 03, 2014 2:57 pm
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
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
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
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
Thanks for the reply I will try that script forsure.
dar
dar
-
dkelly
- TOP CONTRIBUTOR
- Posts: 628
- Joined: Mon Nov 29, 2010 8:45 pm
- Location: Alpharetta GA USA
- Contact:
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.
https://www.dropbox.com/s/jsxo37b2jvfz51t/FTPDelete.zip
Dwight Kelly dkelly@apago.com>
Apago, Inc.
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
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
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix