From c60d26e258d3c607a3f17df527839bcda3cbee71 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Thu, 16 Aug 2018 15:52:33 -0500 Subject: [PATCH] make fs.embarkPath more flexible --- lib/core/fs.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/core/fs.js b/lib/core/fs.js index 927632c73..ccfe40e19 100644 --- a/lib/core/fs.js +++ b/lib/core/fs.js @@ -77,9 +77,8 @@ function removeSync() { return fs.removeSync.apply(fs.removeSync, arguments); } -// returns embarks root directory -function embarkPath(fileOrDir) { - return utils.joinPath(__dirname, '/../../', fileOrDir); +function embarkPath() { + return utils.joinPath(__dirname, '/../../', ...arguments); } function dappPath() {