RE: local/ftp sync

2003-07-25 Thread Cantrell, Adam
Shouldn't be hard to write. Use cfftp to list the contents of your remote
directory. Use cfdirectory to list the contents of your local directory.
Convert the local directory results to a list. Loop through the remote
directory listing, checking to see if listfindnocase returns false on your
local list of filenames - if it does then cfftp GETFILE on that one and
continue onto the next one.

Adam.





> -Original Message-
> From: admin [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 25, 2003 2:14 PM
> To: CF-Talk
> Subject: local/ftp sync
> 
> 
> I need to keep a local directory in sync with a directory on 
> an ftp server. As the files are rather large I don't want to 
> download the whole thing every night, just the new ones, and 
> delete old files on the local directory that are not on the 
> ftp. Just wondering if anyone has written anything similar
> 
> Cheers
> 
> Richard
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



local/ftp sync

2003-07-25 Thread admin
I need to keep a local directory in sync with a directory on an ftp server. As the 
files are rather large I don't want to download the whole thing every night, just the 
new ones, and delete old files on the local directory that are not on the ftp. Just 
wondering if anyone has written anything similar

Cheers

Richard
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4