Wednesday, February 16, 2011 at 12:00 AM.


on init () {
		<<Cribbed from s3.synchFolder.init.
	local (adrdata = river2suite.init ());
	if adrdata^.prefs.static.flSynchToS3 {
		if sizeof (adrdata^.prefs.static.s3path) > 0 {
			local (adrupload = @river2Suite.static.synchFolder.uploadfile);
			local (adrdelete = @river2Suite.static.synchFolder.deletefile);
			local (adrpoint = fileSynch.initSynchPoint ("river2suite.static", adrupload, adrdelete));
			adrpoint^.prefs.folder = adrdata^.prefs.static.folder;
			adrpoint^.prefs.rootPath = adrdata^.prefs.static.s3path;
			adrpoint^.prefs.enabled = true}}};
bundle { //test code
	init ()}

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.