mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-30 08:26:59 +02:00
20 lines
340 B
JavaScript
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; |