MCPcopy
hub / github.com/MrNothing/AI-Blocks / getFile

Method getFile

Sources/src/Model/Objects/Script.js:18–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 }
17
18 getFile()
19 {
20 let filepath = this.findFileInFolder(this.source, "");
21
22 if(filepath=="")
23 {
24 window.service.log("Could not find the Script: "+this.source, "", 2);
25 return "";
26 }
27 else
28 {
29 filepath = require('path').resolve(window.service.project.projectpath+filepath);
30
31 return filepath;
32 }
33 }
34
35 loadParams(filepath)
36 {

Callers

nothing calls this directly

Calls 2

findFileInFolderMethod · 0.95
logMethod · 0.80

Tested by

no test coverage detected