From 29ae1f777665f35c7ab58d2a1e32603e97b0ca48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Pollak?= Date: Mon, 8 Jun 2015 16:28:16 -0700 Subject: [PATCH] Added missing fs.lstat function. --- lib/methods.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/methods.js b/lib/methods.js index e0d3363..1f8640e 100644 --- a/lib/methods.js +++ b/lib/methods.js @@ -110,6 +110,18 @@ module.exports = function (FQ) { this.execQueue(); }; + FQ.prototype.lstat = function(path, callback) { + + this.addToQueue(function(fs, cb) { + + fs.lstat(path, cb); + + }, callback) + + this.execQueue(); + }; + + /** * Asynchronous readdir * http://nodejs.org/docs/v0.10.15/api/fs.html#fs_fs_readdir_path_callback @@ -213,4 +225,4 @@ module.exports = function (FQ) { return writeStream; }; -}; \ No newline at end of file +};