req('PUT', '/tmp/'); mount('/tmp/', I(1).req) req('PUT', '/srv/cons'); mount('/srv/cons', log) req('PUT', '/srv/cc'); mount('/srv/cc', (v, p, d) => { if (v !== 'PUT') err('not allowed') const ld = f => `// #file ${f}\n` + req('GET', f) return ld(d).replace(/^\s*\/\/\s*#include\s+(\S+)/gm, (_, i) => ld(i) + `\n// #file ${d}`) }) eval(req('PUT', '/srv/cc', '/sys/bat') + '\n//# sourceURL=wom:/sys/bat')