I finally fixed Obsidian + iCloud Sync on Windows (no more duplicates, no more “file changed externally”)
github.com·3d·
Discuss: r/ObsidianMD
🔗Obsidian
Preview
Report Post

Running

clear; python -u sync.py 2>&1 | Tee-Object -FilePath "out.log"

Problem (what went wrong with iCloud + Obsidian on Windows)

When using an Obsidian vault stored in iCloud Drive on Windows (via the iCloud for Windows client), several practical sync/FS problems appear:

Transient cloud placeholders & hydration iCloud shows placeholder files in Explorer that are not fully downloaded (0 bytes or unreadable) until the provider hydrates them. A sync tool that reads these stubs can treat them as real files, causing incorrect operations. 1.

Transient locks & PermissionError iCloud/Explorer and Obsidian sometimes hold short-lived exclusive handles while hydrating, uploading, or saving. A sync script attempting an atomic replace/rename during that …

Similar Posts

Loading similar posts...