looks for a file by some criterion
conf | object|function | the criteria for a file |
object | the object of a file |
var file = vault.data.find({ by:"status", match:"failed" });
// a more complex criterion defined as a function:
var file = vault.data.find(function(file){
file.status === "failed" && file.size > 20000;
});
The method takes as a parameter an object with these properties: