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

All: Handle case where file is left half-uploaded on Nextcloud instance (possibly an ocloud.de issue only)

This commit is contained in:
Laurent Cozic
2018-01-30 20:10:36 +00:00
parent 2805ae2acf
commit 7b760d03ef
4 changed files with 56 additions and 7 deletions

View File

@ -18,7 +18,7 @@ class Synchronizer {
this.state_ = 'idle';
this.db_ = db;
this.api_ = api;
//this.syncDirName_ = '.sync';
this.syncDirName_ = '.sync';
this.resourceDirName_ = '.resource';
this.logger_ = new Logger();
this.appType_ = appType;
@ -195,7 +195,8 @@ class Synchronizer {
this.logSyncOperation('starting', null, null, 'Starting synchronisation to target ' + syncTargetId + '... [' + synchronizationId + ']');
try {
//await this.api().mkdir(this.syncDirName_);
await this.api().mkdir(this.syncDirName_);
this.api().setTempDirName(this.syncDirName_);
await this.api().mkdir(this.resourceDirName_);
let donePaths = [];