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

Method _cleanDirs

tests/helpers/package-cache.js:265–276  ·  view source on GitHub ↗

* The `_cleanDirs` method deals with sync issues between the * Configstore and what exists on disk. Non-existent directories * are removed from `this.dirs`. * * @private * @method _cleanDirs

()

Source from the content-addressed store, hash-verified

263 * @method _cleanDirs
264 */
265 _cleanDirs() {
266 let labels = Object.keys(this.dirs);
267
268 let label, directory;
269 for (let i = 0; i < labels.length; i++) {
270 label = labels[i];
271 directory = this.dirs[label];
272 if (!fs.existsSync(directory)) {
273 this._conf.delete(label);
274 }
275 }
276 }
277
278 /**
279 * The `_readManifest` method reads the on-disk manifest for the current

Callers 2

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected