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

system.verbs.builtins.radio.upstream.callbacks.upstream.updateStoriesList

on updateStoriesList (filelist) {
	<<Changes
		<<12/21/01; 6:14:48 PM by JES
			<<The systemUrl for the stories folder has changed. Look in the wwwStoriesSubFolder instead.
		<<12/19/01; 5:59:52 PM by JES
			<<Trigger re-rendering and uploading of the stories list if a story file has just been upstreamed.
	local (pc = file.getPathChar ());
	local (storiesFolder = user.radio.prefs.wwwFolder + radio.data.folderNames.wwwStoriesSubFolderName + pc);
	local (lowerStoriesFolder = string.lower (storiesFolder));
	local (f);
	for f in filelist {
		if string.lower (f) beginsWith lowerStoriesFolder {
			local (indexPath);
			if radio.file.locateFileIgnoringExtension (storiesFolder + "index", @indexPath) {
				if string.lower (f) != string.lower (indexPath) {
					local (adrfile = @user.radio.settings.files.[indexPath]);
					if defined (adrfile^) {
						adrfile^.upstream.whenLastUploaded = date (0)};
					break}}}}} //no need to check the rest of the files
<<bundle //testing
	<<local (pc = file.getPathChar ())
	<<updateStoriesList ({user.radio.prefs.wwwFolder + "stories" + pc + "foo.txt"})
	<<updateStoriesList ({user.radio.prefs.wwwFolder + "stories" + pc + "index.txt"})



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.