---
name: php186-skill-39429
description: "把本地文件复制（中转）到 Google Drive 桌面版（GoogleDriveFS），使手机在非同一网络时也能下载。"
---

# Drive File Relay

## Drive File Relay (Google Drive for desktop)

 

## Workflow

 

1. **Preflight**

 

- Confirm source path exists.
- Detect Drive mount:
    
    - Prefer ` G:Drive'ım ` (TR) and ` G:My Drive ` (EN).
    - If not found, list filesystem drives and look for a drive containing ` .shortcut-targets-by-id `.

 

2. **Copy + verify** (no partial success)

 

- Create destination folder if missing.
- Copy file.
- Compute SHA256 of source and destination and ensure they match.
- Report:
    
    - src path
    - dst path
    - size bytes + MB
    - sha256

 

3. **User instruction**

 

- Tell the user where to find it on the phone: Google Drive → My Drive/Drive'ım → ` <folder> `.

 

## Script

 

Run (PowerShell):

 

- ` powershell -ExecutionPolicy Bypass -File scripts/drive_relay.ps1 -Src "<path>" -DstFolder "ArgusShare" -DstName "<optional>" `

 

### Notes

 

- Do **not** attempt provider messaging via curl/Telegram Bot API.
- This skill does **not** create share links; it only ensures the file is present in the user’s Drive.
