* 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
()
| 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 |
no outgoing calls
no test coverage detected