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

on updateStoriesList (filelist) {
		<<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 = + + 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 =[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 ({ + "stories" + pc + "foo.txt"})
	<<updateStoriesList ({ + "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.