# Quick Download Reference - Golf Club Files

## 🚀 Fastest Method (If you have the URL)

### Option 1: Using wget (Most Common)
```bash
cd /var/www/html/wordpress6/wordpress/EP
./download_directory.sh https://your-golf-club.com/files/ ./downloads
```

### Option 2: Using Python Script (More Flexible)
```bash
cd /var/www/html/wordpress6/wordpress/EP

# Install dependencies (one time)
pip3 install requests beautifulsoup4

# Download
python3 download_directory.py https://your-golf-club.com/files/ -o ./downloads
```

### Option 3: Direct wget Command
```bash
wget -r -np -nH -P ./downloads https://your-golf-club.com/files/
```

---

## 🔐 With Authentication

### Using the shell script:
```bash
./download_directory.sh https://your-golf-club.com/files/ ./downloads username password
```

### Using Python:
```bash
python3 download_directory.py https://your-golf-club.com/files/ -o ./downloads -u username -p password
```

### Using wget directly:
```bash
wget -r -np -nH -P ./downloads --user=username --password=password https://your-golf-club.com/files/
```

---

## 📁 After Download - Upload to Business Workspace

Once files are downloaded to `./downloads`:

1. **Via Google Drive Web Interface:**
   - Go to Google Drive
   - Navigate to your Business Workspace folder
   - Upload the downloaded files/folders

2. **Via Command Line (if rclone is configured):**
   ```bash
   rclone copy ./downloads/ gdrive:BusinessWorkspace/FolderName/
   ```

3. **Via Your Existing Upload Script:**
   ```bash
   # If you have upload functionality in your system
   php event-upload.php
   ```

---

## ⚠️ Common Issues

| Issue | Solution |
|-------|----------|
| "403 Forbidden" | Add username/password authentication |
| "Connection timeout" | Check URL, try with `--timeout=60` |
| "Directory listing disabled" | Use FTP/SFTP instead (see full guide) |
| "Disk space full" | Check space: `df -h`, clean up or use external drive |

---

## 📖 Full Documentation

See `DOWNLOAD_DIRECTORY_GUIDE.md` for:
- All available methods
- FTP/SFTP options
- Browser extension methods
- Troubleshooting details
- Security best practices

---

## 💡 Quick Tips

1. **Test with a single file first** before downloading everything
2. **Check disk space** before large downloads: `df -h`
3. **Use `--continue` flag** in wget to resume interrupted downloads
4. **Verify the URL** - make sure it ends with `/` for directories

---

## 🎯 Typical Workflow

```bash
# 1. Navigate to your workspace
cd /var/www/html/wordpress6/wordpress/EP

# 2. Download files
./download_directory.sh https://your-golf-club.com/files/ ./downloads

# 3. Check what was downloaded
ls -lh ./downloads

# 4. Upload to Google Drive (via web interface or rclone)
# Or use your existing upload system
```

---

Need help? Check `DOWNLOAD_DIRECTORY_GUIDE.md` for detailed instructions.




