[api] Automatically search for a file if options.search
is true in File store
This commit is contained in:
parent
86e22cb927
commit
2e33082f0b
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,10 @@ var File = exports.File = function (options) {
|
||||||
this.file = options.file;
|
this.file = options.file;
|
||||||
this.dir = options.dir || process.cwd();
|
this.dir = options.dir || process.cwd();
|
||||||
this.format = options.format || formats.json;
|
this.format = options.format || formats.json;
|
||||||
|
|
||||||
|
if (options.search) {
|
||||||
|
this.search(this.dir);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Inherit from the Memory store
|
// Inherit from the Memory store
|
||||||
|
|
Loading…
Reference in a new issue