MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / processFile

Function processFile

src/sidebarApps/searchInFiles/worker.js:83–98  ·  view source on GitHub ↗

* Process a file for search or replace operation. * @param {object} file

(file)

Source from the content-addressed store, hash-verified

81 * @param {object} file
82 */
83 function processFile(file) {
84 if (skip(file)) {
85 finishOne();
86 return;
87 }
88
89 getFile(file.url, (res, err) => {
90 if (err) {
91 finishOne();
92 return;
93 }
94
95 process({ file, content: res, search, replace, options });
96 finishOne();
97 });
98 }
99}
100
101/**

Callers 1

pumpFunction · 0.70

Calls 2

finishOneFunction · 0.85
getFileFunction · 0.70

Tested by

no test coverage detected