on updateCategoryStoriesList (filelist) { «Changes «2/22/02; 3:46:38 PM by MW «Render category-specific story index files «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(i, adrcat = @weblogData.categories); for i = 1 to sizeOf(adrcat^) { local(category = radio.data.folderNames.wwwHtmlCategorySubfolderName + pc + adrcat^[i].fileName + pc); local (storiesFolder = user.radio.prefs.wwwFolder + category + 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"})