MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / touch

Function touch

tests/helpers/file-utils.js:5–10  ·  view source on GitHub ↗
(path, obj)

Source from the content-addressed store, hash-verified

3const fs = require('fs-extra');
4
5function touch(path, obj) {
6 if (!fs.existsSync(path)) {
7 fs.createFileSync(path);
8 fs.writeJsonSync(path, obj || {});
9 }
10}
11
12function replaceFile(path, findString, replaceString) {
13 if (fs.existsSync(path)) {

Callers 1

project-test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…