Warning: session_start(): open(/var/lib/php/sessions/sess_49i6m35ds781s6pvif0ehmskfd, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
// keeps file open until you cleanUp() the map
static SS zipFileSnippetToLazyTextMap_subfolder(S snippetID, S folderName) ctex {
if (empty(folderName)) ret zipFileSnippetToLazyTextMap(snippetID);
fS prefix = addSlash(folderName);
final ZipFile zip = new ZipFile(loadLibrary(snippetID));
O f = func(S name) { loadTextFileFromZipFile(zip, prefix + name) };
ret new LazyValueTreeMap(startingWith(listFilesInZip(zip), prefix), f) {
void cleanMeUp() ctex {
zip.close();
}
};
}