diff --git a/lib/file.js b/lib/file.js index 50d34c09..becc25d1 100644 --- a/lib/file.js +++ b/lib/file.js @@ -51,6 +51,10 @@ File.prototype.toJSON = function() { return json; }; +File.prototype.toString = function () { + return "File:" + this.name + ", Path:" + this.path; +}; + File.prototype.write = function(buffer, cb) { var self = this; if (self.hash) {