1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

All: Created ResourceFetcher class to handle resource downloads

This commit is contained in:
Laurent Cozic
2018-10-08 07:36:45 +01:00
parent d66fa87b2b
commit dbdd602f50
4 changed files with 163 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ const { Logger } = require('lib/logger.js');
const { _ } = require('lib/locale.js');
const { shim } = require('lib/shim.js');
const JoplinError = require('lib/JoplinError');
const BaseSyncTarget = require('lib/BaseSyncTarget');
class Synchronizer {
@@ -19,7 +20,7 @@ class Synchronizer {
this.db_ = db;
this.api_ = api;
this.syncDirName_ = '.sync';
this.resourceDirName_ = '.resource';
this.resourceDirName_ = BaseSyncTarget.resourceDirName();
this.logger_ = new Logger();
this.appType_ = appType;
this.cancelling_ = false;