Tuesday, August 18, 2009 at 7:54 PM.

howtoSuite.server.pathToFile

on pathToFile (path, username) {
	<<Changes
		<<7/31/08; 11:24:34 AM by DW
			<<Created. 
	local (pc = file.getpathchar ());
	if not (path beginswith "/") {
		path = "/" + path};
	return (user.howto.prefs.server.basefolder + username + string.replaceall (path, "/", pc))};
bundle { //test code
	dialog.alert (pathToFile ("/test/fun.opml", "dave"))}



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.