Monday, November 08, 2010 at 12:05 AM.
system.verbs.builtins.radio.thread.agents.saveChangedDirectories
<<Changes
<<4/9/02; 4:16:22 PM by DW
<<Only write directory.opml's if user.radio.prefs.flUpstreamDirectoryOpml is true.
<<12/12/01; 2:22:37 PM by DW
<<Only write directory.opml's once an hour at the top of the hour.
if user.radio.prefs.flUpstreamDirectoryOpml {
if user.radio.prefs.upstream.enabled {
local (flupdate = false);
bundle { //set flupdate
local (day, month, year, hour, minute, second);
date.get (clock.now (), @day, @month, @year, @hour, @minute, @second);
if minute == 0 {
if not defined (system.temp.radio.misc.lastSaveChangedDirectoriesHour) {
system.temp.radio.misc.lastSaveChangedDirectoriesHour = -1};
if hour != system.temp.radio.misc.lastSaveChangedDirectoriesHour {
system.temp.radio.misc.lastSaveChangedDirectoriesHour = hour;
flupdate = true}}};
if flupdate {
local (adrtable = @system.temp.radio.recentlyChangedFolders);
if sizeof (adrtable^) > 0 {
local (adr);
for adr in adrtable {
try {radio.upstream.saveDirectoryXml (nameof (adr^))}};
new (tabletype, adrtable)}}}}
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.