## šŖ Windows Path Guidelines
**CRITICAL: Proper path formatting is essential for Windows compatibility.**
### ā
Correct Path Formats
**1. Standard Windows Paths:**
```
ā
CORRECT: C:\Users\Username\Documents\Project
ā
CORRECT: D:\Development\MyApp
ā
CORRECT: C:\Program Files\MyApp
```
**2. UNC Paths (Network Shares):**
```
ā
CORRECT: \\server\share\folder
ā
CORRECT: \\192.168.0.100\shared\documents
```
**3. Relative Paths:**
```
ā
CORRECT: .\subfolder\file.txt
ā
CORRECT: ..\parent\folder
```
### ā Problematic Path Formats
**1. WSL/Unix Style Paths:**
```
ā PROBLEMATIC: /c/Users/Username/Documents
ā PROBLEMATIC: /d/Development/MyApp
ā PROBLEMATIC: /mnt/c/Projects
```
**2. Mixed Separators:**
```
ā PROBLEMATIC: C:/Users\Username/Documents
ā PROBLEMATIC: C:\Users/Username\Documents
```
**3. Invalid Characters:**
```
ā PROBLEMATIC: C:\Users\Username<>\Documents
ā PROBLEMATIC: C:\Users\Username:"*?\Documents
```
### š Path Conversion Examples
**WSL/Unix to Windows:**
```bash
# WSL/Unix Format (INPUT)
/c/Development/ProjectName
/d/workspace/my-project
/c/Users/Username/Documents
# Windows Format (CORRECTED)
C:\Development\ProjectName
D:\workspace\my-project
C:\Users\Username\Documents
```
**URL-Encoded Paths:**
```bash
# URL-Encoded (INPUT)
/c%3A/Development/ProjectName
C%3A%5CUsers%5CUsername
# Decoded Windows Format (CORRECTED)
C:\Development\ProjectName
C:\Users\Username
```
### š”ļø Path Validation Rules
**1. Character Restrictions:**
- **Forbidden:** `< > : " | ? *`
- **Special Case:** `:` is only valid after drive letter (e.g., `C:`)
**2. Reserved Names (Avoid):**
- **System Reserved:** `CON`, `PRN`, `AUX`, `NUL`
- **Port Names:** `COM1-9`, `LPT1-9`
**3. Length Limitations:**
- **Maximum:** 260 characters (default Windows limit)
- **Recommendation:** Keep paths under 200 characters
**4. Trailing Issues:**
- **Avoid:** Trailing spaces or dots
- **Example:** `C:\Users\Username \` ā `C:\Users\Username`
### š” Best Practices for projectPath
**When using Booster tools, always provide Windows-native paths:**
```typescript
// ā
CORRECT Usage
Booster_Storage({
"projectPath": "C:\\Development\\ProjectName",
"WhyChange": "Reason for change",
"WhatChange": "Description of change"
})
// ā INCORRECT Usage
Booster_Storage({
"projectPath": "/c/Development/ProjectName", // WSL format
"WhyChange": "Reason for change",
"WhatChange": "Description of change"
})
```
### š§ Common Issues & Solutions
**Issue 1: Path Duplication**
```bash
# Problem: /c/Development/ProjectName becomes C:\c\Development\ProjectName
# Solution: Use C:\Development\ProjectName directly
```
**Issue 2: Permission Errors**
```bash
# Problem: Cannot write to system directories
# Solution: Use user directories or run with admin privileges
```
**Issue 3: Long Path Errors**
```bash
# Problem: Path exceeds 260 characters
# Solution: Enable long path support or use shorter paths
```
### š Quick Reference
**For Terminal Commands:**
```bash
# Use absolute Windows paths
cd "C:\Development\ProjectName"
mkdir "C:\Users\Username\Documents\NewProject"
```
**For File Operations:**
```typescript
// Always escape backslashes in strings
const projectPath = "C:\\Development\\ProjectName";
const filePath = path.join(projectPath, "booster-data", "conclusion.md");
```
**For Booster Functions:**
```typescript
// Use consistent Windows format
projectPath: "C:\\Development\\ProjectName" // ā
Correct
projectPath: "/c/Development/ProjectName" // ā Avoid
```
### šØ Error Prevention
**Always validate paths before use:**
1. Check for invalid characters
2. Verify path length
3. Ensure proper Windows format
4. Test write permissions
**The system automatically handles:**
- WSL/Unix path conversion
- URL decoding
- Path normalization
- Basic sanitization
**Manual intervention needed for:**
- Reserved name conflicts
- Permission issues
- Very long paths
- Network path problems