obsidian-folder-notes icon indicating copy to clipboard operation
obsidian-folder-notes copied to clipboard

Automatic creation of folder notes causes serious synchronization problems

Open xarx00 opened this issue 1 year ago • 1 comments

I use a file synchronization software (not the Obsidian Sync) to synchronize my vault between my notebook(N), tablet (T) and mobile (M). When "Automatically create folder notes" is enabled, the plugin causes serious synchronization issues. It is because it creates the folder notes too "aggressively".

Scenario:

  1. At N, lets create a new folder with the folder note in it, Xxx/Xxx.md.
  2. Syncthing (ST) replicates the structure to M.
  3. ST first creates the folder Xxx/
  4. Now the Folder notes plugin steps in, it sees an empty folder, so it creates a new empty folder note in it, Xxx/Xxx.md.
  5. ST wants to replicate the Xxx/Xxx.md folder note, but it is already there, and a newer one. Hence ST fails with a sync-conflict.

Actually, this occurs all the time, hence I had to turn off the automatic folder notes creation. Which is a pity.

Solution: The problems would be solved if the folder notes creation wasn't so "aggressive" - if the Folder notes plugin waited a little while (a few seconds) before it creates the missing folder notes. Or if it created folder notes only for folders created in Obsidian, not externally.

xarx00 avatar Feb 21 '24 18:02 xarx00