gws-drive-upload
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesedrive +upload
drive +upload
PREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
Upload a file with automatic metadata
前置要求: 阅读了解认证、全局标志和安全规则。如果该文件缺失,请运行../gws-shared/SKILL.md来创建它。gws generate-skills
上传文件并自动添加元数据
Usage
使用方法
bash
gws drive +upload <file>bash
gws drive +upload <file>Flags
标志参数
| Flag | Required | Default | Description |
|---|---|---|---|
| ✓ | — | Path to file to upload |
| — | — | Parent folder ID |
| — | — | Target filename (defaults to source filename) |
| 标志 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|
| ✓ | — | 要上传的文件路径 |
| — | — | 父文件夹ID |
| — | — | 目标文件名(默认为源文件名) |
Examples
示例
bash
gws drive +upload ./report.pdf
gws drive +upload ./report.pdf --parent FOLDER_ID
gws drive +upload ./data.csv --name 'Sales Data.csv'bash
gws drive +upload ./report.pdf
gws drive +upload ./report.pdf --parent FOLDER_ID
gws drive +upload ./data.csv --name 'Sales Data.csv'Tips
提示
- MIME type is detected automatically.
- Filename is inferred from the local path unless --name is given.
[!CAUTION] This is a write command — confirm with the user before executing.
- MIME类型会自动检测。
- 文件名会从本地路径推断,除非指定了--name参数。
[!CAUTION] 这是一个写入命令——执行前请与用户确认。
See Also
另请参阅
- gws-shared — Global flags and auth
- gws-drive — All manage files, folders, and shared drives commands
- gws-shared — 全局标志和认证
- gws-drive — 所有管理文件、文件夹和共享云端硬盘的命令