From 4684c32e8aa8882049e864c5c0edd399a137c7b0 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Tue, 14 Mar 2017 17:51:10 +0400 Subject: check eth path remove unneeded packages --- RPCTests/modules/utils.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'RPCTests/modules/utils.js') diff --git a/RPCTests/modules/utils.js b/RPCTests/modules/utils.js index 5d32ec771..0d0f2b02f 100644 --- a/RPCTests/modules/utils.js +++ b/RPCTests/modules/utils.js @@ -37,6 +37,13 @@ module.exports = { } }, + fileExists: function fileExists(path) + { + if(fs.existsSync(path)) + return true; + return false; + }, + readFile: function readFile(path, callback, cb) { fs.readFile(path, 'utf8', (err, data) => { callback (err, data, cb) }); }, -- cgit v1.2.3