mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Copy mode previously computed DirChecksum (Walk + ReadFile + SHA256) for every skill on every sync, even when nothing changed. Add mtime- based short-circuit: if source dir max mtime matches the manifest record, skip checksum entirely. Changes: - Add DirMaxMtime() — Walk + lstat only, no file reads - Extend Manifest with Mtimes map (omitempty, backward-compatible) - SyncTargetCopyWithSkills: mtime fast-path with target validity check - diff: two-phase scan-then-display with spinner (no more interleaved spinner + diff output), discovery spinner for both global/project - Clearer diff reasons: "missing" → "source only", "missing (deleted from target)" → "deleted from target" - Server handleDiff: same mtime fast-path for copy mode - Prune cleans up orphan mtime entries