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

system.verbs.builtins.radio.upstream.folderNeedsScan

on folderNeedsScan (folder) {
	<<Changes:
		<<7/25/03; 1:19:10 PM by JES
			<<Fixed a bug which could cause an infinite loop if there are file tables in user.radio.settings.files whose path doesn't begin with the upstream folder path.
		<<3/28/03; 4:49:58 PM by JES
			<<Created. Call this verb with the path to a folder which needs to be scanned for upstreaming on the next pass.
	local (lowerUpstreamFolder = string.lower (user.radio.prefs.upstream.folder));
	if not (string.lower (folder) beginswith lowerUpstreamFolder) {
		return (false)};
	local (yesterday = date.yesterday (clock.now ()));
	loop {
		if defined (user.radio.settings.files.[folder].upstream) {
			user.radio.settings.files.[folder].upstream.whenLastScanned = yesterday};
		folder = file.folderFromPath (folder);
		if string.lower (folder) == lowerUpstreamFolder {
			break};
		if folder == "" { //reality check
			break}}}



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.