1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Revert: All: Resolves #4810, Resolves #4610: Fix AWS S3 sync error and upgrade framework to v3 (#5212)

Revert commit d2e2866995

Ref: https://github.com/laurent22/joplin/issues/5287
This commit is contained in:
Laurent Cozic
2021-08-11 11:24:01 +01:00
parent a3b37ca59d
commit 6927335330
16 changed files with 590 additions and 6080 deletions

View File

@@ -26,6 +26,16 @@ export default class FsDriverNode extends FsDriverBase {
}
}
public async writeBinaryFile(path: string, content: any) {
try {
// let buffer = new Buffer(content);
const buffer = Buffer.from(content);
return await fs.writeFile(path, buffer);
} catch (error) {
throw this.fsErrorToJsError_(error, path);
}
}
public async writeFile(path: string, string: string, encoding: string = 'base64') {
try {
if (encoding === 'buffer') {