1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-03 08:35:29 +02:00
joplin/ReactNativeClient/lib/fs-driver-node.js
2017-11-04 13:23:15 +00:00

20 lines
340 B
JavaScript

const fs = require('fs-extra');
class FsDriverNode {
appendFileSync(path, string) {
return fs.appendFileSync(path, string);
}
writeBinaryFile(path, content) {
let buffer = new Buffer(content);
return fs.writeFile(path, buffer);
}
readFile(path) {
return fs.readFile(path);
}
}
module.exports.FsDriverNode = FsDriverNode;