aboutsummaryrefslogtreecommitdiffstats
path: root/RPCTests/modules/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'RPCTests/modules/utils.js')
-rw-r--r--RPCTests/modules/utils.js7
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) });
},