diff --git a/lib/nconf/stores/file.js b/lib/nconf/stores/file.js index b18ea24..4e88912 100644 --- a/lib/nconf/stores/file.js +++ b/lib/nconf/stores/file.js @@ -28,6 +28,10 @@ var File = exports.File = function (options) { this.file = options.file; this.dir = options.dir || process.cwd(); this.format = options.format || formats.json; + + if (options.search) { + this.search(this.dir); + } }; // Inherit from the Memory store