Monday, November 08, 2010 at 12:03 AM.
system.verbs.builtins.html.loadFolder
on loadFolder (folder, adrtable) {
local (f);
new (tableType, adrtable);
fileloop (f in folder) {
local (fname = file.fileFromPath (f));
msg (fname);
if file.isFolder (f) {
local (adrsubtable = @adrtable^.[fname - file.getPathChar ()]);
new (tabletype, adrsubtable);
html.loadFolder (f, adrsubtable)} //recurse
else {
html.loadTextFile (f, adrtable)}}}
<<bundle <<test code
<<local (folder = "C:\\Frontier 5\\Websites\\samples\\davenet\\")
<<local (adrtable = @websites.test)
<<loadFolder (folder, 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.