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


on mget (filename=nil, searchpath, hostName=nil, destPath, binary=nil) { << kinda simulates how a FTP server does it
	local(tmpFile = file.getSpecialFolderPath("", "Temporary Items", true)+"anarchieTMP");
	with anarchie, eventInfo, utilities {
		case (typeof(searchPath)) {
			recordType {
				filename = searchPath[1];
				hostName = searchPath[host];
				searchPath = searchPath[path]}};
		nlist(tmpFile, hostName, searchpath + "/*"+filename+"*");
		fList = fileToList(tmpFile);
		file.delete(tmpFile); << all done with it
		fetch(destPath, hostName, fList)}}

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.