Monday, November 08, 2010 at 12:05 AM.
system.verbs.builtins.radio.utilities.systemFolderTextFiles.save
<<Changes <<10/17/01; 1:44:42 AM by JES <<Don't read any files that are in the www/system/temp/ folder... They're temp files, and are treated the same way as objects in the system.temp table: they're not saved. <<6/18/01; 8:23:47 AM by DW <<This runs every time we do a release. It loops over the system folder, copying files that need to be replicated into the object database. local (adrtable = @radio.data.systemFolderTextFiles); new (tabletype, adrtable); local (systemfolder = user.radio.prefs.wwwfolder + radio.data.folderNames.wwwSystemSubfolderName + file.getpathchar ()); local (f); fileloop (f in systemfolder, infinity) { local (objectname = string.delete (f, 1, sizeof (systemfolder))); objectname = string.replaceall (objectname, file.getpathchar (), "/"); if not (objectname beginswith radio.data.folderNames.wwwUpstreamSubfolderName) { if not (objectname beginswith "temp/") { if radio.webserver.getfilemimetype (f) beginswith "text" { local (adrobject = @radio.data.systemFolderTextFiles.[objectname]); wp.newtextobject (string (file.readwholefile (f)), adrobject); setTimeCreated (adrobject, file.created (f)); setTimeModified (adrobject, file.modified (f))}}}}; filemenu.save ()
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.