mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
All: Fixes #3381: Prevent desktop.ini file from breaking sync lock
This commit is contained in:
parent
77005fc495
commit
c2d6da83c0
@ -12,7 +12,7 @@ const { time } = require('lib/time-utils.js');
|
||||
const { Logger } = require('lib/logger.js');
|
||||
const { _ } = require('lib/locale.js');
|
||||
const { shim } = require('lib/shim.js');
|
||||
const { filename } = require('lib/path-utils');
|
||||
const { filename, fileExtension } = require('lib/path-utils');
|
||||
const JoplinError = require('lib/JoplinError');
|
||||
const BaseSyncTarget = require('lib/BaseSyncTarget');
|
||||
const TaskQueue = require('lib/TaskQueue');
|
||||
@ -222,7 +222,10 @@ class Synchronizer {
|
||||
|
||||
async lockFiles_() {
|
||||
const output = await this.api().list(this.lockDirName_);
|
||||
return output.items;
|
||||
return output.items.filter((p) => {
|
||||
const ext = fileExtension(p.path);
|
||||
return ext === 'lock';
|
||||
});
|
||||
}
|
||||
|
||||
parseLockFilePath(path) {
|
||||
|
Loading…
Reference in New Issue
Block a user