From 9a4dd0186d5d0a3f8cf027a6f02708f8728e2e19 Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Sat, 16 Apr 2022 00:38:52 +0800 Subject: [PATCH] polish sync --- src/sync.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/sync.ts b/src/sync.ts index 477b71c..1bd68bd 100644 --- a/src/sync.ts +++ b/src/sync.ts @@ -459,9 +459,15 @@ const ensembleMixedStates = async ( results[key].changeLocalMtimeUsingMapping = r.changeLocalMtimeUsingMapping; } else { - results[key] = r; - results[key].existLocal = false; // we have already checked local - results[key].existRemote = false; // we have already checked remote + // So, the file doesn't exist, + // except that it existed in the "renamed to" history records. + // 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 { throw Error(