v0.9.2 Release Note ─
Bug Fixes
-
Fix Windows backup failure with NTFS junctions (#7)
On Windows,
skillshare syncfailed to backup targets containing NTFS junctions (created by previous syncs) with "Incorrect function" error. A single unreadable
junction would crash the entire backup for that target, preventing all local skills from being backed up.Root cause:
filepath.Walkcallsos.Lstaton junctions, which can fail on Windows withnilfile info — bypassing all junction-detection logic.Fixed by replacing
filepath.Walkwithos.ReadDir+os.Lstat, so junctions are identified and skipped before any read attempt. Backup now only copies real
local files.
Tests
- Add unit tests for
copyDir(regular files, symlink skipping, mixed content, broken symlinks) - Add integration test: backup after sync correctly skips symlinked skills