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

master
indexzero 2011-10-22 02:36:45 -04:00
parent 86e22cb927
commit 2e33082f0b
1 changed files with 4 additions and 0 deletions

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