Hiya,
I’m currently writing a program for myself which extracts some data from markdown files one of my Obsidian vaults, and appends markdown to another file.
This of course creates a potential race where my program attempts to append to the file while Obsidian is also writing to the file. My question is around best practices to mitigate this risk and avoid any edits being lost, eg. does Obsidian use file locks when making changes to files or some other stale-detection mechanism that I can work with?
Thanks!