MCPcopy
hub / github.com/ember-cli/ember-cli / has

Method has

lib/models/project.js:320–322  ·  view source on GitHub ↗

Returns whether or not the given file name is present in this project. @private @method has @param {String} file File name @return {Boolean} Whether or not the file is present

(file)

Source from the content-addressed store, hash-verified

318 @return {Boolean} Whether or not the file is present
319 */
320 has(file) {
321 return fs.existsSync(path.join(this.root, file)) || fs.existsSync(path.join(this.root, `${file}.js`));
322 }
323
324 /**
325 Resolves the absolute path to a file synchronously

Callers 8

_importMethod · 0.45
processAppMiddlewaresMethod · 0.45
findAddonsMethod · 0.45
getHostAddonInfoMethod · 0.45
blueprint.jsFile · 0.45
findBundleOwnerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected