Monday, November 08, 2010 at 12:04 AM.

system.verbs.builtins.radio.backup.enableUpstreaming

on enableUpstreaming (flEnabled) {
	<<Changes
		<<11/29/02; 1:52:58 PM by JES
			<<Created. Enable or disable upstreaming of backup files. Called from the Backups prefs page after the checkbox for enabling/disabling upstreaming of the backup files.
	local (f = user.radio.backup.prefs.folder + radio.data.fileNames.upstreamFileName);
	if flEnabled { //remove the #upstream.txt file from the backup folder
		if file.exists (f) {
			file.delete (f);
			radio.upstream.folderNeedsUpstream (user.radio.backup.prefs.folder)}}
	else { //create a #upstream.txt file with type="none" to prevent upstreaming
		if not file.exists (f) {
			file.sureFilePath (f);
			file.writeTextFile (f, "<upstream type=\"none\" version=\"1.0\"/>")}}}



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.