MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / writeDirectoryFileString

Method writeDirectoryFileString

tools/mcpack.js:339–345  ·  view source on GitHub ↗
(path, name, string)

Source from the content-addressed store, hash-verified

337 }
338 }
339 writeDirectoryFileString(path, name, string) {
340 let segments = name.split('/');
341 if (segments.length > 1)
342 path = this.createDirectories(path, ...segments.slice(0, -1));
343 path += this.slash + segments[segments.length - 1];
344 this.writeFileString(path, string);
345 }
346
347 listSpecifiers(path) @ "Tool_prototype_listSpecifiers"
348 parseModule(module) {

Callers 1

runMethod · 0.80

Calls 2

sliceMethod · 0.65
createDirectoriesMethod · 0.45

Tested by

no test coverage detected