MCPcopy Index your code
hub / github.com/totaljs/framework / $image_persistent

Function $image_persistent

index.js:18522–18535  ·  view source on GitHub ↗
(exists, size, isFile, stats, res)

Source from the content-addressed store, hash-verified

18520}
18521
18522function $image_persistent(exists, size, isFile, stats, res) {
18523 if (exists) {
18524 delete F.temporary.processing[res.req.$key];
18525 F.temporary.path[res.req.$key] = [res.options.name, stats.size, stats.mtime.toUTCString()];
18526 res.options.filename = res.options.name;
18527 res.$file();
18528 } else {
18529 F.temporary.processing[res.req.$key] = true;
18530 if (res.options.stream)
18531 fsFileExists(res.options.name, $image_stream, res);
18532 else
18533 fsFileExists(res.options.filename, $image_filename, res);
18534 }
18535}
18536
18537function $continue_timeout(res) {
18538 res.continue();

Callers

nothing calls this directly

Calls 1

fsFileExistsFunction · 0.85

Tested by

no test coverage detected