mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 06:42:03 +00:00
Fixed cloud storage path detection to work correctly on Windows by normalizing path separators to forward slashes and removing Windows drive letters before pattern matching. Issue: The isCloudStoragePath() function was failing on Windows because: 1. path.resolve() converts Unix paths to Windows paths with backslashes 2. Windows adds drive letters (e.g., "P:\Users\test" instead of "/Users/test") 3. Pattern checks for "/Library/CloudStorage/" didn't match "\Library\CloudStorage\" 4. Home-anchored path comparisons failed due to drive letter mismatches Solution: - Normalize all path separators to forward slashes for consistent pattern matching - Remove Windows drive letters (e.g., "C:" or "P:") from normalized paths - This ensures Unix-style test paths work the same on all platforms All tests now pass (967 passed, 27 skipped): - ✅ Cloud storage path detection tests (macOS patterns) - ✅ Home-anchored cloud folder tests (Dropbox, Google Drive, OneDrive) - ✅ Sandbox compatibility tests - ✅ Cross-platform path handling 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>