Repository navigation
0.0.2
Fixes incremental sync, which failed with "File already exists" and pulled no update.
The sync engine chose create-vs-update by asking Obsidian''s in-memory file index, which lags the disk right after a batch of files is written. An existing file therefore looked absent, createBinary was called on a path that was already there, and the resulting throw aborted the whole run. The initial sync was unaffected because the vault really was empty.
All file I/O now goes through vault.adapter, which reads the filesystem: one writeBinary call both creates and overwrites, so no existence check can go stale before the write.
Also in this release:
- Nested folders are created one level at a time.
mkdirdoes not create ancestors, so a commit introducing a path several levels deep previously failed. - The access token and per-device sync state moved out of
data.jsonintolocal.json, so plugin settings can be kept in version control while the credential is gitignored. Exclude.obsidian/plugins/obsidian-github-sync/local.json. - "Verify access" moved under Sync and now exercises the configured sync repository and remote folder instead of a separate test repository.
- The Sign in button updates to "Re-authenticate" immediately after signing in, without needing a manual refresh.