mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-11-15 12:40:12 +00:00
Maintain watched file names for CLI collision checks
Share the CLI watcher with a reconciled name inventory, observe local mutations, and retain newer notifications across overlapping reads. Adopt the shared index for Obsidian and preserve fresh bulk operations.
This commit is contained in:
1 parent
78ebc2d298
commit
2a65fe0117
35 files changed
+5440
-28
No files matched your search
@@ -294,7 +294,10 @@ export function createConflictResolutionOperations(
|
||||
const resolveAllConflictedFilesByNewerOnes = async (): Promise<void> => {
|
||||
dependencies.log(`Resolving conflicts by newer ones`, LOG_LEVEL_NOTICE);
|
||||
|
||||
const files = await dependencies.storageAccess.getFileNames();
|
||||
// This explicit bulk action deletes older revisions. Read the host's
|
||||
// supported listing anew before choosing its workset; a listing failure
|
||||
// must abort before any revision is removed.
|
||||
const files = await dependencies.storageAccess.getFileNames({ fresh: true });
|
||||
|
||||
let i = 0;
|
||||
for (const file of files) {
|
||||
|
||||
Reference in new issue
Block a user