diff options
author | Dimitry <dimitry@ethdev.com> | 2017-03-14 21:51:10 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethdev.com> | 2017-03-14 21:51:10 +0800 |
commit | 4684c32e8aa8882049e864c5c0edd399a137c7b0 (patch) | |
tree | a0d62f9961e510e2041581354b23375e153c1f95 /RPCTests/modules/utils.js | |
parent | eb245faed55fe482b3eb47d451c3b67b01bd72fb (diff) | |
download | dexon-tests-4684c32e8aa8882049e864c5c0edd399a137c7b0.tar dexon-tests-4684c32e8aa8882049e864c5c0edd399a137c7b0.tar.gz dexon-tests-4684c32e8aa8882049e864c5c0edd399a137c7b0.tar.bz2 dexon-tests-4684c32e8aa8882049e864c5c0edd399a137c7b0.tar.lz dexon-tests-4684c32e8aa8882049e864c5c0edd399a137c7b0.tar.xz dexon-tests-4684c32e8aa8882049e864c5c0edd399a137c7b0.tar.zst dexon-tests-4684c32e8aa8882049e864c5c0edd399a137c7b0.zip |
check eth path
remove unneeded packages
Diffstat (limited to 'RPCTests/modules/utils.js')
-rw-r--r-- | RPCTests/modules/utils.js | 7 |
1 files changed, 7 insertions, 0 deletions
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) }); }, |