polish sync
This commit is contained in:
parent
f9cdf323b8
commit
9a4dd0186d
12
src/sync.ts
12
src/sync.ts
@ -459,9 +459,15 @@ const ensembleMixedStates = async (
|
|||||||
results[key].changeLocalMtimeUsingMapping =
|
results[key].changeLocalMtimeUsingMapping =
|
||||||
r.changeLocalMtimeUsingMapping;
|
r.changeLocalMtimeUsingMapping;
|
||||||
} else {
|
} else {
|
||||||
results[key] = r;
|
// So, the file doesn't exist,
|
||||||
results[key].existLocal = false; // we have already checked local
|
// except that it existed in the "renamed to" history records.
|
||||||
results[key].existRemote = false; // we have already checked remote
|
// Most likely because that the user deleted the file while Obsidian was closed,
|
||||||
|
// so Obsidian could not track the deletions.
|
||||||
|
// We are not sure how to deal with this, so do not generate anything here!
|
||||||
|
// // // The following 3 lines are of old logic, and have been removed:
|
||||||
|
// // results[key] = r;
|
||||||
|
// // results[key].existLocal = false; // we have already checked local
|
||||||
|
// // results[key].existRemote = false; // we have already checked remote
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw Error(
|
throw Error(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user