tcb storage upload
Upload a local file or folder to classic mode cloud storage. When localPath is a folder, every file inside it is uploaded.
Usage
tcb storage upload <localPath> <cloudPath>
Parameters
| Parameter | Required | Description | Default |
|---|---|---|---|
<localPath> | Yes | Local file or folder path, for example ./index.js, ./images | — |
<cloudPath> | Yes | Target path relative to the storage root, for example index.js, images/photo.jpg | — |
--times <count> | No | Retry count, 0 to 10 | 1 |
--interval <ms> | No | Retry interval in milliseconds | 500 |
Cloud paths always use / as the separator; local paths use the separator of the operating system. A leading / means an absolute path from the root, anything else is a relative path.
Examples
tcb storage upload ./photo.jpg images/photo.jpg
tcb storage upload ./images images --times 3 --interval 1000