View Full Version : Problems with FTP
Murrgon
08-16-2005, 03:50 PM
Using Process Files and the FTP step, I am trying to copy my build to our FTP server. However, this method doesn't work. First off, having the FTP connection opened and closed for every file is very inefficient and our server thinks you are doing bad things when you reconnect very rapidly in a short period of time.
Secondly, using this method won't build a directory tree (or at least I can't find a option that will do this) so I end up with all of my files copied to one flat folder instead of it containing the appropriate sub directories.
Is there anything I can do to get around this?
kinook
08-16-2005, 04:00 PM
The Process Files method does result in a new connection for each file. Adding a Wait step in the loop to pause between each file may help, depending on the delay required by your server. The next release of VBP will have recursive put built into the FTP action (using a single connection for all files).
See the Recurse.bld sample (Update Web Site section) for how to recursively put files into subfolders to match the source.
Murrgon
08-17-2005, 09:52 AM
I used the %PROCFILES_FILE_DIR% as shown in the Recurse.bld sample and that did the trick for building the directory tree properly.
I added a 10 second wait between files which made the FTP server happy, but it makes the transfer really slow. How long before the next update to VBP?
Thanks
GrahamS
08-17-2005, 05:02 PM
Using wildcards (e.g. *) in the FTP step will speed up things considerably.
I suggest using the "Process once for each folder" option in the Process Files Option together with the wildcard option in FTP which would do one connect for each subdirectory instead of one connect for each file
kinook
08-18-2005, 07:09 AM
That's an excellent suggestion (I neglected to mention that the Recurse.bld sample also demonstrates that).
We're currently targetting Nov. for the next release.
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.