2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00

Add readFile method in server utils

This commit is contained in:
Faris Ansari 2018-07-14 22:01:14 +05:30
parent d8d1eb69a2
commit 13d3d62cba

View File

@ -16,6 +16,10 @@ module.exports = {
});
},
readFile(filepath) {
return fs.readFileSync(filepath, 'utf-8');
},
getTmpDir() {
return os.tmpdir();
}