MCPcopy
hub / github.com/commitizen/cz-cli / writeFilesToPath

Function writeFilesToPath

test/tools/files.js:15–19  ·  view source on GitHub ↗

* Opinionated writing of files to a path. * * Expects files to be an object where each sub * object has properties filename and contents.

(files, directoryPath)

Source from the content-addressed store, hash-verified

13 * object has properties filename and contents.
14 */
15function writeFilesToPath (files, directoryPath) {
16 _.forOwn(files, function (key, value) {
17 fs.writeFileSync(path.resolve(directoryPath, files[value].filename), files[value].contents);
18 });
19}

Callers 3

commit.jsFile · 0.85
quickPrompterSetupFunction · 0.85
staging.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected