MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / loadFiles

Function loadFiles

web/scripts/ragnar_modern.js:13213–13230  ·  view source on GitHub ↗
(path = '/', highlightFile = null)

Source from the content-addressed store, hash-verified

13211 setPwnLogIndicator(true);
13212 fetchPwnLogs({ initial: Boolean(options.initial) || pwnLogCursor === 0, silent: true });
13213 pwnLogStreamTimer = setInterval(() => fetchPwnLogs({ silent: true }), PWN_LOG_POLL_INTERVAL);
13214}
13215
13216function stopPwnLogStreaming() {
13217 if (pwnLogStreamTimer) {
13218 clearInterval(pwnLogStreamTimer);
13219 pwnLogStreamTimer = null;
13220 }
13221 pwnLogStreaming = false;
13222 setPwnLogIndicator(false);
13223}
13224
13225function schedulePwnLogStop() {
13226 if (pwnLogStopTimeout) {
13227 return;
13228 }
13229 pwnLogStopTimeout = setTimeout(() => {
13230 stopPwnLogStreaming();
13231 pwnLogStopTimeout = null;
13232 }, 12000);
13233}

Callers 3

loadFilesDataFunction · 0.70
openLootFileFunction · 0.70
refreshFilesFunction · 0.70

Calls 5

errorMethod · 0.80
networkAwareFetchFunction · 0.70
displayFilesFunction · 0.70
updateCurrentPathFunction · 0.70
showFileErrorFunction · 0.70

Tested by

no test coverage detected