Sometimes I forget the subfolder to which I wrote a cache. Or even if not, I've explored the filesystem and have found the name that I want. Now I want to loadCaches() it. "Uh-oh...I need to successfully reconstruct the path to the folder that cache is inhabiting, relative to my RCACHE.DIR! Wait...what's my RCHACHE.DIR?! Calling getOption...that's just too much to handle."
Anyway, fun hypotheticals aside, it'd be cool to have some parameter like recursive (maybe even defaulting to TRUE) to allow simpleCache to explore the hierarchy rooted at RCACHE.DIR. listCaches() could implement this, and then simpleCache and loadCaches could call into that.
Sometimes I forget the subfolder to which I wrote a cache. Or even if not, I've explored the filesystem and have found the name that I want. Now I want to
loadCaches()it. "Uh-oh...I need to successfully reconstruct the path to the folder that cache is inhabiting, relative to myRCACHE.DIR! Wait...what's myRCHACHE.DIR?! CallinggetOption...that's just too much to handle."Anyway, fun hypotheticals aside, it'd be cool to have some parameter like
recursive(maybe even defaulting toTRUE) to allowsimpleCacheto explore the hierarchy rooted atRCACHE.DIR.listCaches()could implement this, and thensimpleCacheandloadCachescould call into that.listCacheslistCachesfromloadCacheslistCachesfromsimpleCache(though possibly precluded by how loadCaches failure message #20 is handled)