[api] Automatically search for a file if options.search is true in File store

This commit is contained in:
indexzero 2011-10-22 02:36:45 -04:00
parent 86e22cb927
commit 2e33082f0b

View file

@ -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