1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Fixed import

This commit is contained in:
Laurent Cozic
2017-07-05 23:09:47 +01:00
parent a81fe24368
commit 23818cb428
3 changed files with 2 additions and 8 deletions

View File

@ -39,17 +39,10 @@ class Resource extends BaseItem {
static content(resource) {
return this.fsDriver().readFile(this.fullPath(resource));
// // TODO: node-only, and should probably be done with streams
// const fs = require('fs-extra');
// return fs.readFile(this.fullPath(resource));
}
static setContent(resource, content) {
return this.fsDriver().writeBinaryFile(this.fullPath(resource), content);
// // TODO: node-only, and should probably be done with streams
// const fs = require('fs-extra');
// let buffer = new Buffer(content);
// return fs.writeFile(this.fullPath(resource), buffer);
}
}