mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-27 11:33:21 +00:00
fix(startup): recheck sizes after reading storage
This commit is contained in:
1 parent
fc2b35e0dc
commit
fd2eebdf38
3 files changed
+41
No files matched your search
@@ -117,6 +117,10 @@ export async function checkIncompleteDocuments(
|
||||
continue;
|
||||
}
|
||||
sizeOnStorage = storageFileContent.byteLength;
|
||||
// The file may have changed since stat, so recheck using the bytes read.
|
||||
if (recordedSize === actualSize && sizeOnStorage === actualSize && !isConflicted) {
|
||||
continue;
|
||||
}
|
||||
const contentMatched = await isDocContentSame(doc.data, storageFileContent);
|
||||
errorFiles.push({
|
||||
path,
|
||||
|
||||
Reference in new issue
Block a user