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

Function dir

lib/models/blueprint.js:1735–1741  ·  view source on GitHub ↗

@private @method dir @return {Array} list of files in the given directory or and empty array if no directory exists

(fullPath)

Source from the content-addressed store, hash-verified

1733 @return {Array} list of files in the given directory or and empty array if no directory exists
1734*/
1735function dir(fullPath) {
1736 if (Blueprint._existsSync(fullPath)) {
1737 return Blueprint._readdirSync(fullPath).map((fileName) => path.join(fullPath, fileName));
1738 } else {
1739 return [];
1740 }
1741}
1742
1743/**
1744 @private

Callers 12

blueprint.jsFile · 0.85
lib-test.jsFile · 0.85
new-test.jsFile · 0.85
addon-test.jsFile · 0.85
generate-test.jsFile · 0.85
smoke-test-slow.jsFile · 0.85
init-test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected