From c2ef3ac80f1f30bf047df2e23df61750728b65b0 Mon Sep 17 00:00:00 2001 From: clement Date: Thu, 14 Aug 2014 20:57:27 +0800 Subject: [PATCH] add the missing option to let user exclude dot files --- tasks/sftp-deploy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/sftp-deploy.js b/tasks/sftp-deploy.js index 4c40e0d..7f01034 100644 --- a/tasks/sftp-deploy.js +++ b/tasks/sftp-deploy.js @@ -59,7 +59,7 @@ module.exports = function(grunt) { files = fs.readdirSync(startDir); for (i = 0; i < files.length; i++) { currFile = startDir + path.sep + files[i]; - if (!file.isMatch({matchBase: true}, exclusions, currFile)) { + if (!file.isMatch({matchBase: true,dot:true}, exclusions, currFile)) { if (file.isDir(currFile)) { tmpPath = path.relative(localRoot, startDir + path.sep + files[i]); if (!_.has(result, tmpPath)) {