Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-16-2005, 03:50 PM
Murrgon Murrgon is online now
Registered User
 
Join Date: 07-28-2005
Posts: 19
Problems with FTP

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?
Reply With Quote
  #2  
Old 08-16-2005, 04:00 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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.
Reply With Quote
  #3  
Old 08-17-2005, 09:52 AM
Murrgon Murrgon is online now
Registered User
 
Join Date: 07-28-2005
Posts: 19
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
Reply With Quote
  #4  
Old 08-17-2005, 05:02 PM
GrahamS GrahamS is online now
Registered User
 
Join Date: 12-26-2003
Posts: 16
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
Reply With Quote
  #5  
Old 08-18-2005, 07:09 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 09:52 AM.


Copyright © 1999-2023 Kinook Software, Inc.