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


on deleteFile (adrfile) {
		<<7/8/06; 11:35:59 AM by DW
	local (adrdata);
	adrdata = parentof (adrfile^); //files
	adrdata = parentof (adrdata^); //the synchpoint table
	if defined (adrdata^.callbacks.deleteFile) {
		try {
			adrdata^.callbacks.deleteFile^ (adrdata, adrfile);
			system.temp.fileSynch.trash.[nameof (adrfile^)] = adrfile^;
			adrdata^.stats.lastDeletedFile = nameof (adrfile^);
			delete (adrfile)}
		else {
			adrfile^.whenLastError = ();
			adrfile^.lastError = tryError}}};
bundle { //test code
	deleteFile (@user.fileSynch.synchPoints.test.files.["oh.opml"])}

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.