1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-03 22:37:35 +02:00
joplin/ReactNativeClient/lib/services/InteropService_Exporter_Base.js

16 lines
446 B
JavaScript
Raw Normal View History

class InteropService_Exporter_Base {
async init(destDir) {}
async processItem(ItemClass, item) {}
async processResource(resource, filePath) {}
async close() {}
async temporaryDirectory_(createIt) {
2018-03-09 17:49:35 +00:00
const md5 = require("md5");
const tempDir = require("os").tmpdir() + "/" + md5(Math.random() + Date.now());
if (createIt) await require("fs-extra").mkdirp(tempDir);
return tempDir;
}
}
2018-03-09 17:49:35 +00:00
module.exports = InteropService_Exporter_Base;