From e601f468cd8d4d7ca4a0a49ba8e97d377d1eef4d Mon Sep 17 00:00:00 2001 From: Trishant Pahwa Date: Sat, 22 Jan 2022 11:17:43 +0530 Subject: [PATCH] Fixed empty .dorkyignore file bug. --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index f8ec43f..86847d0 100644 --- a/index.js +++ b/index.js @@ -22,7 +22,8 @@ function initializeProject() { } function listFiles() { - const exclusions = fs.readFileSync('./.dorkyignore').toString().split(EOL); + let exclusions = fs.readFileSync('./.dorkyignore').toString().split(EOL); + if(exclusions[0] == '') exclusions = []; var getDirectories = function (src, callback) { glob(src + '/**/*', callback); };